Fix uri tasks (#55403)
* Fix uri tasks * Fix apt task to install firewalld * Fix invalid option in package_facts - ci_complete
This commit is contained in:
parent
fdf9df89f5
commit
bd0792397b
3 changed files with 7 additions and 7 deletions
|
@ -21,7 +21,7 @@
|
||||||
- name: Ensure firewalld is installed
|
- name: Ensure firewalld is installed
|
||||||
package:
|
package:
|
||||||
name: firewalld
|
name: firewalld
|
||||||
state: installed
|
state: present
|
||||||
# This doesn't work for CentOS 6 because firewalld doesn't exist in CentOS6
|
# This doesn't work for CentOS 6 because firewalld doesn't exist in CentOS6
|
||||||
|
|
||||||
- name: Check to make sure the firewalld python module is available.
|
- name: Check to make sure the firewalld python module is available.
|
||||||
|
|
|
@ -19,11 +19,11 @@
|
||||||
- name: Prep package_fact tests - Debian Family
|
- name: Prep package_fact tests - Debian Family
|
||||||
block:
|
block:
|
||||||
- name: install python apt bindings - python2
|
- name: install python apt bindings - python2
|
||||||
package: name="python-apt" state=installed
|
package: name="python-apt" state=present
|
||||||
when: ansible_python.version.major|int == 2
|
when: ansible_python.version.major|int == 2
|
||||||
|
|
||||||
- name: install python apt bindings - python3
|
- name: install python apt bindings - python3
|
||||||
package: name="python3-apt" state=installed
|
package: name="python3-apt" state=present
|
||||||
when: ansible_python.version.major|int == 3
|
when: ansible_python.version.major|int == 3
|
||||||
|
|
||||||
- name: Gather package facts
|
- name: Gather package facts
|
||||||
|
@ -49,11 +49,11 @@
|
||||||
- name: Run package_fact tests - SUSE/OpenSUSE Family
|
- name: Run package_fact tests - SUSE/OpenSUSE Family
|
||||||
block:
|
block:
|
||||||
- name: install python rpm bindings - python2
|
- name: install python rpm bindings - python2
|
||||||
package: name="rpm-python" state=installed
|
package: name="rpm-python" state=present
|
||||||
when: ansible_python.version.major|int == 2
|
when: ansible_python.version.major|int == 2
|
||||||
|
|
||||||
- name: install python rpm bindings - python3
|
- name: install python rpm bindings - python3
|
||||||
package: name="python3-rpm" state=installed
|
package: name="python3-rpm" state=present
|
||||||
when: ansible_python.version.major|int == 3
|
when: ansible_python.version.major|int == 3
|
||||||
|
|
||||||
- name: Gather package facts
|
- name: Gather package facts
|
||||||
|
|
|
@ -75,9 +75,9 @@
|
||||||
password: guest
|
password: guest
|
||||||
force_basic_auth: yes
|
force_basic_auth: yes
|
||||||
return_content: yes
|
return_content: yes
|
||||||
register: post_data
|
|
||||||
headers:
|
headers:
|
||||||
Content-Type: "application/json"
|
Content-Type: "application/json"
|
||||||
|
register: post_data
|
||||||
|
|
||||||
|
|
||||||
- name: Post test message to the exchange (json)
|
- name: Post test message to the exchange (json)
|
||||||
|
@ -89,9 +89,9 @@
|
||||||
password: guest
|
password: guest
|
||||||
force_basic_auth: yes
|
force_basic_auth: yes
|
||||||
return_content: yes
|
return_content: yes
|
||||||
register: post_data_json
|
|
||||||
headers:
|
headers:
|
||||||
Content-Type: "application/json"
|
Content-Type: "application/json"
|
||||||
|
register: post_data_json
|
||||||
|
|
||||||
- name: Test retrieve messages
|
- name: Test retrieve messages
|
||||||
set_fact:
|
set_fact:
|
||||||
|
|
Loading…
Reference in a new issue