Ensure yaml packages are installed
Since all of our ansible modules have 'import yaml', we should ensure that we have the correct yaml python packages installed. When running in containers, they aren't there by default. Change-Id: I911f589817d7142711b8ef3c675a8098a3ebb0f3
This commit is contained in:
parent
ff730321a2
commit
a9ab69a59d
@ -83,6 +83,13 @@
|
|||||||
when:
|
when:
|
||||||
- (ansible_os_family | lower) == 'redhat'
|
- (ansible_os_family | lower) == 'redhat'
|
||||||
|
|
||||||
|
- name: Install python yaml libs
|
||||||
|
package:
|
||||||
|
name: "{{ test_deps_yaml_packages }}"
|
||||||
|
state: present
|
||||||
|
when:
|
||||||
|
- (ansible_os_family | lower) == 'redhat'
|
||||||
|
|
||||||
- name: Install extra packages
|
- name: Install extra packages
|
||||||
package:
|
package:
|
||||||
name: "{{ test_deps_extra_packages }}"
|
name: "{{ test_deps_extra_packages }}"
|
||||||
|
@ -16,6 +16,8 @@
|
|||||||
|
|
||||||
|
|
||||||
test_deps_repo: https://trunk.rdoproject.org/centos7/current
|
test_deps_repo: https://trunk.rdoproject.org/centos7/current
|
||||||
|
test_deps_yaml_packages:
|
||||||
|
- PyYAML
|
||||||
test_deps_selinux_packages:
|
test_deps_selinux_packages:
|
||||||
- libselinux-python
|
- libselinux-python
|
||||||
test_deps_tripleo_packages:
|
test_deps_tripleo_packages:
|
||||||
|
@ -16,6 +16,8 @@
|
|||||||
|
|
||||||
|
|
||||||
test_deps_repo: https://trunk.rdoproject.org/centos8-master/current
|
test_deps_repo: https://trunk.rdoproject.org/centos8-master/current
|
||||||
|
test_deps_yaml_packages:
|
||||||
|
- python3-pyyaml
|
||||||
test_deps_selinux_packages:
|
test_deps_selinux_packages:
|
||||||
- python3-libselinux
|
- python3-libselinux
|
||||||
test_deps_tripleo_packages:
|
test_deps_tripleo_packages:
|
||||||
|
@ -16,6 +16,8 @@
|
|||||||
|
|
||||||
|
|
||||||
test_deps_repo: https://trunk.rdoproject.org/redhat8-master/current
|
test_deps_repo: https://trunk.rdoproject.org/redhat8-master/current
|
||||||
|
test_deps_yaml_packages:
|
||||||
|
- python3-pyyaml
|
||||||
test_deps_selinux_packages:
|
test_deps_selinux_packages:
|
||||||
- python3-libselinux
|
- python3-libselinux
|
||||||
test_deps_tripleo_packages:
|
test_deps_tripleo_packages:
|
||||||
|
Loading…
Reference in New Issue
Block a user