Merge "Install system dependencies for tox-molecule"

This commit is contained in:
Zuul 2019-07-19 07:56:29 +00:00 committed by Gerrit Code Review
commit 9de3c4061c
1 changed files with 28 additions and 2 deletions

View File

@ -1,3 +1,29 @@
- hosts: all
roles:
- install-docker
tasks:
# psutil->python-devel
# psutil->gcc
# ansible->selinux
- name: install packages needed by molecule
when: ansible_os_family == "RedHat" and ansible_lsb.major_release|int >= 8
become: true
package:
name:
- python2-devel
- python2-libselinux
- python3-devel
- python3-libselinux
- gcc
- name: install packages needed by molecule
when: ansible_os_family == "RedHat" and ansible_lsb.major_release|int < 8
become: true
package:
name:
- python-devel
- libselinux-python
- gcc
- name: install docker
include_role:
name: install-docker