|
|
|
@ -84,8 +84,8 @@
|
|
|
|
|
- "not yum_result.changed"
|
|
|
|
|
|
|
|
|
|
# Multiple packages
|
|
|
|
|
- name: uninstall sos and python-q
|
|
|
|
|
yum: name=sos,python-q state=removed
|
|
|
|
|
- name: uninstall sos and sharutils
|
|
|
|
|
yum: name=sos,sharutils state=removed
|
|
|
|
|
register: yum_result
|
|
|
|
|
|
|
|
|
|
- name: check sos with rpm
|
|
|
|
@ -93,19 +93,19 @@
|
|
|
|
|
failed_when: False
|
|
|
|
|
register: rpm_sos_result
|
|
|
|
|
|
|
|
|
|
- name: check python-q with rpm
|
|
|
|
|
shell: rpm -q python-q
|
|
|
|
|
- name: check sharutils with rpm
|
|
|
|
|
shell: rpm -q sharutils
|
|
|
|
|
failed_when: False
|
|
|
|
|
register: rpm_python_q_result
|
|
|
|
|
register: rpm_sharutils_result
|
|
|
|
|
|
|
|
|
|
- name: verify packages installed
|
|
|
|
|
assert:
|
|
|
|
|
that:
|
|
|
|
|
- "rpm_sos_result.rc != 0"
|
|
|
|
|
- "rpm_python_q_result.rc != 0"
|
|
|
|
|
- "rpm_sharutils_result.rc != 0"
|
|
|
|
|
|
|
|
|
|
- name: install sos and python-q as comma separated
|
|
|
|
|
yum: name=sos,python-q state=present
|
|
|
|
|
- name: install sos and sharutils as comma separated
|
|
|
|
|
yum: name=sos,sharutils state=present
|
|
|
|
|
register: yum_result
|
|
|
|
|
|
|
|
|
|
- name: check sos with rpm
|
|
|
|
@ -113,10 +113,10 @@
|
|
|
|
|
failed_when: False
|
|
|
|
|
register: rpm_sos_result
|
|
|
|
|
|
|
|
|
|
- name: check python-q with rpm
|
|
|
|
|
shell: rpm -q python-q
|
|
|
|
|
- name: check sharutils with rpm
|
|
|
|
|
shell: rpm -q sharutils
|
|
|
|
|
failed_when: False
|
|
|
|
|
register: rpm_python_q_result
|
|
|
|
|
register: rpm_sharutils_result
|
|
|
|
|
|
|
|
|
|
- name: verify packages installed
|
|
|
|
|
assert:
|
|
|
|
@ -124,17 +124,17 @@
|
|
|
|
|
- "yum_result.rc == 0"
|
|
|
|
|
- "yum_result.changed"
|
|
|
|
|
- "rpm_sos_result.rc == 0"
|
|
|
|
|
- "rpm_python_q_result.rc == 0"
|
|
|
|
|
- "rpm_sharutils_result.rc == 0"
|
|
|
|
|
|
|
|
|
|
- name: uninstall sos and python-q
|
|
|
|
|
yum: name=sos,python-q state=removed
|
|
|
|
|
- name: uninstall sos and sharutils
|
|
|
|
|
yum: name=sos,sharutils state=removed
|
|
|
|
|
register: yum_result
|
|
|
|
|
|
|
|
|
|
- name: install sos and python-q as list
|
|
|
|
|
- name: install sos and sharutils as list
|
|
|
|
|
yum:
|
|
|
|
|
name:
|
|
|
|
|
- sos
|
|
|
|
|
- python-q
|
|
|
|
|
- sharutils
|
|
|
|
|
state: present
|
|
|
|
|
register: yum_result
|
|
|
|
|
|
|
|
|
@ -143,10 +143,10 @@
|
|
|
|
|
failed_when: False
|
|
|
|
|
register: rpm_sos_result
|
|
|
|
|
|
|
|
|
|
- name: check python-q with rpm
|
|
|
|
|
shell: rpm -q python-q
|
|
|
|
|
- name: check sharutils with rpm
|
|
|
|
|
shell: rpm -q sharutils
|
|
|
|
|
failed_when: False
|
|
|
|
|
register: rpm_python_q_result
|
|
|
|
|
register: rpm_sharutils_result
|
|
|
|
|
|
|
|
|
|
- name: verify packages installed
|
|
|
|
|
assert:
|
|
|
|
@ -154,15 +154,15 @@
|
|
|
|
|
- "yum_result.rc == 0"
|
|
|
|
|
- "yum_result.changed"
|
|
|
|
|
- "rpm_sos_result.rc == 0"
|
|
|
|
|
- "rpm_python_q_result.rc == 0"
|
|
|
|
|
- "rpm_sharutils_result.rc == 0"
|
|
|
|
|
|
|
|
|
|
- name: uninstall sos and python-q
|
|
|
|
|
yum: name=sos,python-q state=removed
|
|
|
|
|
- name: uninstall sos and sharutils
|
|
|
|
|
yum: name=sos,sharutils state=removed
|
|
|
|
|
register: yum_result
|
|
|
|
|
|
|
|
|
|
- name: install sos and python-q as comma separated with spaces
|
|
|
|
|
- name: install sos and sharutils as comma separated with spaces
|
|
|
|
|
yum:
|
|
|
|
|
name: "sos, python-q"
|
|
|
|
|
name: "sos, sharutils"
|
|
|
|
|
state: present
|
|
|
|
|
register: yum_result
|
|
|
|
|
|
|
|
|
@ -172,9 +172,9 @@
|
|
|
|
|
register: rpm_sos_result
|
|
|
|
|
|
|
|
|
|
- name: check sos with rpm
|
|
|
|
|
shell: rpm -q python-q
|
|
|
|
|
shell: rpm -q sharutils
|
|
|
|
|
failed_when: False
|
|
|
|
|
register: rpm_python_q_result
|
|
|
|
|
register: rpm_sharutils_result
|
|
|
|
|
|
|
|
|
|
- name: verify packages installed
|
|
|
|
|
assert:
|
|
|
|
@ -182,7 +182,7 @@
|
|
|
|
|
- "yum_result.rc == 0"
|
|
|
|
|
- "yum_result.changed"
|
|
|
|
|
- "rpm_sos_result.rc == 0"
|
|
|
|
|
- "rpm_python_q_result.rc == 0"
|
|
|
|
|
- "rpm_sharutils_result.rc == 0"
|
|
|
|
|
|
|
|
|
|
- name: uninstall sos and python-q
|
|
|
|
|
yum: name=sos,python-q state=removed
|
|
|
|
|
- name: uninstall sos and sharutils
|
|
|
|
|
yum: name=sos,sharutils state=removed
|
|
|
|
|