|
|
@ -30,7 +30,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
- name: verify uninstallation of sos
|
|
|
|
- name: verify uninstallation of sos
|
|
|
|
assert:
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
that:
|
|
|
|
- "yum_result.rc == 0"
|
|
|
|
- "yum_result.rc == 0"
|
|
|
|
- "rpm_result.rc == 1"
|
|
|
|
- "rpm_result.rc == 1"
|
|
|
|
|
|
|
|
|
|
|
@ -41,7 +41,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
- name: verify no change on re-uninstall
|
|
|
|
- name: verify no change on re-uninstall
|
|
|
|
assert:
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
that:
|
|
|
|
- "not yum_result.changed"
|
|
|
|
- "not yum_result.changed"
|
|
|
|
|
|
|
|
|
|
|
|
# INSTALL
|
|
|
|
# INSTALL
|
|
|
@ -59,7 +59,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
- name: verify installation of sos
|
|
|
|
- name: verify installation of sos
|
|
|
|
assert:
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
that:
|
|
|
|
- "yum_result.rc == 0"
|
|
|
|
- "yum_result.rc == 0"
|
|
|
|
- "yum_result.changed"
|
|
|
|
- "yum_result.changed"
|
|
|
|
- "rpm_result.rc == 0"
|
|
|
|
- "rpm_result.rc == 0"
|
|
|
@ -67,7 +67,6 @@
|
|
|
|
- name: verify yum module outputs
|
|
|
|
- name: verify yum module outputs
|
|
|
|
assert:
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
that:
|
|
|
|
- "'invocation' in yum_result"
|
|
|
|
|
|
|
|
- "'changed' in yum_result"
|
|
|
|
- "'changed' in yum_result"
|
|
|
|
- "'msg' in yum_result"
|
|
|
|
- "'msg' in yum_result"
|
|
|
|
- "'rc' in yum_result"
|
|
|
|
- "'rc' in yum_result"
|
|
|
@ -80,9 +79,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
- name: verify no change on second install
|
|
|
|
- name: verify no change on second install
|
|
|
|
assert:
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
that:
|
|
|
|
- "not yum_result.changed"
|
|
|
|
- "not yum_result.changed"
|
|
|
|
|
|
|
|
|
|
|
|
# Multiple packages
|
|
|
|
# Multiple packages
|
|
|
|
- name: uninstall sos and sharutils
|
|
|
|
- name: uninstall sos and sharutils
|
|
|
|
yum: name=sos,sharutils state=removed
|
|
|
|
yum: name=sos,sharutils state=removed
|
|
|
|