mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Change python-q into sharutils as the epel repo for centos6 is being funky.
This commit is contained in:
parent
f2afd1a248
commit
da5e201b07
1 changed files with 29 additions and 29 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue