|
|
@ -120,6 +120,15 @@
|
|
|
|
that:
|
|
|
|
that:
|
|
|
|
- "yum_result is successful"
|
|
|
|
- "yum_result is successful"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: install sos with state latest in check mode with config file param
|
|
|
|
|
|
|
|
yum: name=sos state=latest conf_file=/etc/yum.conf
|
|
|
|
|
|
|
|
check_mode: true
|
|
|
|
|
|
|
|
register: yum_result
|
|
|
|
|
|
|
|
- name: verify install sos with state latest in check mode with config file param
|
|
|
|
|
|
|
|
assert:
|
|
|
|
|
|
|
|
that:
|
|
|
|
|
|
|
|
- "yum_result is changed"
|
|
|
|
|
|
|
|
|
|
|
|
- name: install sos with state latest in check mode
|
|
|
|
- name: install sos with state latest in check mode
|
|
|
|
yum: name=sos state=latest
|
|
|
|
yum: name=sos state=latest
|
|
|
|
check_mode: true
|
|
|
|
check_mode: true
|
|
|
@ -145,6 +154,15 @@
|
|
|
|
that:
|
|
|
|
that:
|
|
|
|
- "not yum_result is changed"
|
|
|
|
- "not yum_result is changed"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: install sos with state latest idempotence with config file param
|
|
|
|
|
|
|
|
yum: name=sos state=latest
|
|
|
|
|
|
|
|
register: yum_result
|
|
|
|
|
|
|
|
- name: verify install sos with state latest idempotence with config file param
|
|
|
|
|
|
|
|
assert:
|
|
|
|
|
|
|
|
that:
|
|
|
|
|
|
|
|
- "not yum_result is changed"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Multiple packages
|
|
|
|
# Multiple packages
|
|
|
|
- name: uninstall sos and bc
|
|
|
|
- name: uninstall sos and bc
|
|
|
|
yum: name=sos,bc state=removed
|
|
|
|
yum: name=sos,bc state=removed
|
|
|
|