Add dependencies playbook for global dependencies

This commit is contained in:
Ethan N. Paul 2018-12-12 23:52:14 -05:00
parent 772a07f2a1
commit 69d0dcd95b
3 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,8 @@
---
- hosts: all
name: Ansible python bindings
tasks:
- import_tasks: tasks/centos/bindings.yml
when: ansible_distribution == "CentOS"
- import_tasks: tasks/fedora/bindings.yml
when: ansible_distribution == "Fedora"

View File

@ -0,0 +1,9 @@
---
- name: Install python bindings using YUM
become: true
yum:
state: latest
name:
- libselinux-python
- policycoreutils-python
- python-firewall

View File

@ -0,0 +1,9 @@
---
- name: Install python bindings using DNF
become: true
dnf:
state: latest
name:
- libselinux-python
- policycoreutils-python
- python3-firewall