Browse Source

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
changes/25/749825/2
Alex Schultz 2 years ago
parent
commit
a9ab69a59d
  1. 7
      tripleo_ansible/roles/test_deps/tasks/main.yml
  2. 2
      tripleo_ansible/roles/test_deps/vars/centos-7.yml
  3. 2
      tripleo_ansible/roles/test_deps/vars/centos-8.yml
  4. 2
      tripleo_ansible/roles/test_deps/vars/redhat-8.yml

7
tripleo_ansible/roles/test_deps/tasks/main.yml vendored

@ -83,6 +83,13 @@
when:
- (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
package:
name: "{{ test_deps_extra_packages }}"

2
tripleo_ansible/roles/test_deps/vars/centos-7.yml vendored

@ -16,6 +16,8 @@
test_deps_repo: https://trunk.rdoproject.org/centos7/current
test_deps_yaml_packages:
- PyYAML
test_deps_selinux_packages:
- libselinux-python
test_deps_tripleo_packages:

2
tripleo_ansible/roles/test_deps/vars/centos-8.yml vendored

@ -16,6 +16,8 @@
test_deps_repo: https://trunk.rdoproject.org/centos8-master/current
test_deps_yaml_packages:
- python3-pyyaml
test_deps_selinux_packages:
- python3-libselinux
test_deps_tripleo_packages:

2
tripleo_ansible/roles/test_deps/vars/redhat-8.yml vendored

@ -16,6 +16,8 @@
test_deps_repo: https://trunk.rdoproject.org/redhat8-master/current
test_deps_yaml_packages:
- python3-pyyaml
test_deps_selinux_packages:
- python3-libselinux
test_deps_tripleo_packages:

Loading…
Cancel
Save