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:
Alex Schultz 2020-09-03 14:46:48 -06:00
parent ff730321a2
commit a9ab69a59d
4 changed files with 13 additions and 0 deletions

View File

@ -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 }}"

View File

@ -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:

View File

@ -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:

View File

@ -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: