|
|
@ -255,7 +255,7 @@
|
|
|
|
state: present
|
|
|
|
state: present
|
|
|
|
register: yum_result
|
|
|
|
register: yum_result
|
|
|
|
|
|
|
|
|
|
|
|
- name: verify nothing changed
|
|
|
|
- name: verify sos is installed
|
|
|
|
assert:
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
that:
|
|
|
|
- "yum_result.rc == 0"
|
|
|
|
- "yum_result.rc == 0"
|
|
|
@ -269,6 +269,25 @@
|
|
|
|
- "'rc' in yum_result"
|
|
|
|
- "'rc' in yum_result"
|
|
|
|
- "'results' in yum_result"
|
|
|
|
- "'results' in yum_result"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: try to install the group again, with --check to check 'changed'
|
|
|
|
|
|
|
|
yum:
|
|
|
|
|
|
|
|
name: "@Development Tools"
|
|
|
|
|
|
|
|
state: present
|
|
|
|
|
|
|
|
check_mode: yes
|
|
|
|
|
|
|
|
register: yum_result
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: verify nothing changed
|
|
|
|
|
|
|
|
assert:
|
|
|
|
|
|
|
|
that:
|
|
|
|
|
|
|
|
- "not yum_result.changed"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: verify yum module outputs
|
|
|
|
|
|
|
|
assert:
|
|
|
|
|
|
|
|
that:
|
|
|
|
|
|
|
|
- "'changed' in yum_result"
|
|
|
|
|
|
|
|
- "'msg' 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"
|
|
|
|