summaryrefslogtreecommitdiffstats
path: root/roles/common/tasks/deps.yml
blob: bf444a37233d2408b49823da758bf119c685c40d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
- name: Installation des dépendances du playbook
  package:
    name: python-dnf
    state: present
  when: ansible_pkg_mgr == "dnf"

- name: Installation du module firewall pour python2
  package:
    name: python-firewall
    state: present
  when: ansible_distribution == "Fedora" and ansible_distribution_version|int <= 27
        or ansible_distribution == "CentOS"

- name: Installation du module firewall pour python3
  package:
    name: python3-firewall
    state: present
  when: ansible_distribution == "Fedora" and ansible_distribution_version|int >= 28

- name: Installation du module SELinux pour python
  package:
    name: libselinux-python
    state: present