|
|
|
@ -14,10 +14,12 @@
|
|
|
|
|
- unarchive: src={{filesdir}}/test.tar dest={{testdir}}
|
|
|
|
|
register: res
|
|
|
|
|
- command: test -f {{testdir}}/foo
|
|
|
|
|
- command: test "{{res.changed}}" = "True"
|
|
|
|
|
- fail: msg="Resource was expected to be changed."
|
|
|
|
|
when: not res|changed
|
|
|
|
|
- unarchive: src={{filesdir}}/test.tar dest={{testdir}}
|
|
|
|
|
register: res
|
|
|
|
|
- command: test "{{res.changed}}" = "False"
|
|
|
|
|
- fail: msg="Resource was not expected to be changed."
|
|
|
|
|
when: res|changed
|
|
|
|
|
|
|
|
|
|
- name: "Simple tar.gz unarchive."
|
|
|
|
|
command: rm -rf {{testdir}}
|
|
|
|
@ -25,10 +27,12 @@
|
|
|
|
|
- unarchive: src={{filesdir}}/test.tar.gz dest={{testdir}}
|
|
|
|
|
register: res
|
|
|
|
|
- command: test -f {{testdir}}/foo
|
|
|
|
|
- command: test "{{res.changed}}" = "True"
|
|
|
|
|
- fail: msg="Resource was expected to be changed."
|
|
|
|
|
when: not res|changed
|
|
|
|
|
- unarchive: src={{filesdir}}/test.tar.gz dest={{testdir}}
|
|
|
|
|
register: res
|
|
|
|
|
- command: test "{{res.changed}}" = "False"
|
|
|
|
|
- fail: msg="Resource was not expected to be changed."
|
|
|
|
|
when: res|changed
|
|
|
|
|
|
|
|
|
|
- name: "Simple zip unarchive."
|
|
|
|
|
command: rm -rf {{testdir}}
|
|
|
|
@ -36,10 +40,12 @@
|
|
|
|
|
- unarchive: src={{filesdir}}/test.zip dest={{testdir}}
|
|
|
|
|
register: res
|
|
|
|
|
- command: test -f {{testdir}}/foo
|
|
|
|
|
- command: test "{{res.changed}}" = "True"
|
|
|
|
|
- fail: msg="Resource was expected to be changed."
|
|
|
|
|
when: not res|changed
|
|
|
|
|
- unarchive: src={{filesdir}}/test.zip dest={{testdir}}
|
|
|
|
|
register: res
|
|
|
|
|
- command: test "{{res.changed}}" = "True"
|
|
|
|
|
- fail: msg="Resource was expected to be changed."
|
|
|
|
|
when: not res|changed
|
|
|
|
|
|
|
|
|
|
- name: "Unarchive a local tar file."
|
|
|
|
|
command : rm -rf {{testdir}}
|
|
|
|
@ -48,10 +54,12 @@
|
|
|
|
|
- unarchive: src={{testdir}}/test.tar dest={{testdir}}
|
|
|
|
|
register: res
|
|
|
|
|
- command: test -f {{testdir}}/foo
|
|
|
|
|
- command: test "{{res.changed}}" = "True"
|
|
|
|
|
- fail: msg="Resource was expected to be changed."
|
|
|
|
|
when: not res|changed
|
|
|
|
|
- unarchive: src={{testdir}}/test.tar dest={{testdir}}
|
|
|
|
|
register: res
|
|
|
|
|
- command: test "{{res.changed}}" = "False"
|
|
|
|
|
- fail: msg="Resource was not expected to be changed."
|
|
|
|
|
when: res|changed
|
|
|
|
|
|
|
|
|
|
- name: "Unarchive a local tar.gz file."
|
|
|
|
|
command : rm -rf {{testdir}}
|
|
|
|
@ -60,10 +68,12 @@
|
|
|
|
|
- unarchive: src={{testdir}}/test.tar.gz dest={{testdir}}
|
|
|
|
|
register: res
|
|
|
|
|
- command: test -f {{testdir}}/foo
|
|
|
|
|
- command: test "{{res.changed}}" = "True"
|
|
|
|
|
- fail: msg="Resource was expected to be changed."
|
|
|
|
|
when: not res|changed
|
|
|
|
|
- unarchive: src={{testdir}}/test.tar.gz dest={{testdir}}
|
|
|
|
|
register: res
|
|
|
|
|
- command: test "{{res.changed}}" = "False"
|
|
|
|
|
- fail: msg="Resource was not expected to be changed."
|
|
|
|
|
when: res|changed
|
|
|
|
|
|
|
|
|
|
- name: "Unarchive a local zip file."
|
|
|
|
|
command : rm -rf {{testdir}}
|
|
|
|
@ -72,7 +82,9 @@
|
|
|
|
|
- unarchive: src={{testdir}}/test.zip dest={{testdir}}
|
|
|
|
|
register: res
|
|
|
|
|
- command: test -f {{testdir}}/foo
|
|
|
|
|
- command: test "{{res.changed}}" = "True"
|
|
|
|
|
- fail: msg="Resource was expected to be changed."
|
|
|
|
|
when: not res|changed
|
|
|
|
|
- unarchive: src={{testdir}}/test.zip dest={{testdir}}
|
|
|
|
|
register: res
|
|
|
|
|
- command: test "{{res.changed}}" = "True"
|
|
|
|
|
- fail: msg="Resource was expected to be changed."
|
|
|
|
|
when: not res|changed
|
|
|
|
|