This repository has been archived on 2024-05-02. You can view files and clone it, but cannot push or open issues or pull requests.
2018-12-13 04:52:14 +00:00
|
|
|
---
|
|
|
|
- hosts: all
|
|
|
|
name: Ansible python bindings
|
2019-11-23 19:30:39 +00:00
|
|
|
tags:
|
|
|
|
- always
|
|
|
|
- initialize
|
2018-12-13 04:52:14 +00:00
|
|
|
tasks:
|
2019-11-23 19:30:39 +00:00
|
|
|
- name: Install CentOS python bindings
|
2018-12-13 04:52:14 +00:00
|
|
|
when: ansible_distribution == "CentOS"
|
2019-11-23 19:30:39 +00:00
|
|
|
become: true
|
|
|
|
dnf:
|
|
|
|
state: latest
|
|
|
|
name:
|
|
|
|
- python3-libselinux
|
|
|
|
- python3-policycoreutils
|
|
|
|
- python3-firewall
|
|
|
|
|
|
|
|
- name: Install Fedora python bindings
|
2018-12-13 04:52:14 +00:00
|
|
|
when: ansible_distribution == "Fedora"
|
2019-11-23 19:30:39 +00:00
|
|
|
become: true
|
|
|
|
dnf:
|
|
|
|
state: latest
|
|
|
|
name:
|
|
|
|
- libselinux-python
|
|
|
|
- policycoreutils-python
|
|
|
|
- python3-firewall
|