|
|
@ -8,9 +8,6 @@
|
|
|
|
failed_when: False
|
|
|
|
failed_when: False
|
|
|
|
register: rpm_result
|
|
|
|
register: rpm_result
|
|
|
|
|
|
|
|
|
|
|
|
- debug: var=yum_result
|
|
|
|
|
|
|
|
- debug: var=rpm_result
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: verify uninstallation of sos
|
|
|
|
- name: verify uninstallation of sos
|
|
|
|
assert:
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
that:
|
|
|
@ -37,9 +34,6 @@
|
|
|
|
failed_when: False
|
|
|
|
failed_when: False
|
|
|
|
register: rpm_result
|
|
|
|
register: rpm_result
|
|
|
|
|
|
|
|
|
|
|
|
- debug: var=yum_result
|
|
|
|
|
|
|
|
- debug: var=rpm_result
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: verify installation of sos
|
|
|
|
- name: verify installation of sos
|
|
|
|
assert:
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
that:
|
|
|
@ -191,9 +185,6 @@
|
|
|
|
failed_when: False
|
|
|
|
failed_when: False
|
|
|
|
register: rpm_result
|
|
|
|
register: rpm_result
|
|
|
|
|
|
|
|
|
|
|
|
- debug: var=yum_result
|
|
|
|
|
|
|
|
- debug: var=rpm_result
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: verify installation of sos
|
|
|
|
- name: verify installation of sos
|
|
|
|
assert:
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
that:
|
|
|
@ -256,6 +247,28 @@
|
|
|
|
- "'rc' in yum_result"
|
|
|
|
- "'rc' in yum_result"
|
|
|
|
- "'results' in yum_result"
|
|
|
|
- "'results' in yum_result"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: install the group again but also with a package that is not yet installed
|
|
|
|
|
|
|
|
yum:
|
|
|
|
|
|
|
|
name:
|
|
|
|
|
|
|
|
- "@Development Tools"
|
|
|
|
|
|
|
|
- sos
|
|
|
|
|
|
|
|
state: present
|
|
|
|
|
|
|
|
register: yum_result
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: verify nothing changed
|
|
|
|
|
|
|
|
assert:
|
|
|
|
|
|
|
|
that:
|
|
|
|
|
|
|
|
- "yum_result.rc == 0"
|
|
|
|
|
|
|
|
- "yum_result.changed"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: verify yum module outputs
|
|
|
|
|
|
|
|
assert:
|
|
|
|
|
|
|
|
that:
|
|
|
|
|
|
|
|
- "'changed' in yum_result"
|
|
|
|
|
|
|
|
- "'msg' in yum_result"
|
|
|
|
|
|
|
|
- "'rc' in yum_result"
|
|
|
|
|
|
|
|
- "'results' in yum_result"
|
|
|
|
|
|
|
|
|
|
|
|
- name: try to install non existing group
|
|
|
|
- name: try to install non existing group
|
|
|
|
yum:
|
|
|
|
yum:
|
|
|
|
name: "@non-existing-group"
|
|
|
|
name: "@non-existing-group"
|
|
|
|