zuul-jobs/playbooks/tox/pre-molecule.yaml
Sorin Sbarnea 440592a560 Install system dependencies for tox-molecule
Avoids the need to add complex bindep.txt on each repository that
uses molecule by adding the boostraping of dependencies directly
in the job definition.

This was already tested on CentOS/Fedora/RHEL via
https://review.rdoproject.org/r/#/c/21486/

Change-Id: I2a3b1143b566b31fb866f7c3ecae7ff0276cb246
2019-07-16 14:13:13 +01:00

30 lines
675 B
YAML

- hosts: all
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