Add dependencies playbook for global dependencies
This commit is contained in:
parent
772a07f2a1
commit
69d0dcd95b
8
playbooks/dependencies.yml
Normal file
8
playbooks/dependencies.yml
Normal 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"
|
9
tasks/centos/bindings.yml
Normal file
9
tasks/centos/bindings.yml
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
- name: Install python bindings using YUM
|
||||
become: true
|
||||
yum:
|
||||
state: latest
|
||||
name:
|
||||
- libselinux-python
|
||||
- policycoreutils-python
|
||||
- python-firewall
|
9
tasks/fedora/bindings.yml
Normal file
9
tasks/fedora/bindings.yml
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
- name: Install python bindings using DNF
|
||||
become: true
|
||||
dnf:
|
||||
state: latest
|
||||
name:
|
||||
- libselinux-python
|
||||
- policycoreutils-python
|
||||
- python3-firewall
|
Reference in New Issue
Block a user