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