summaryrefslogtreecommitdiffstats
path: root/roles/common/tasks/deps.yml
blob: 5c08574173e3c2f8d88df100500056f4b130ada0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
- 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

- name: Installation du module docker pour python2
  package:
    name: docker-python
    state: present
  when: ansible_distribution == "CentOS"

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