blob: ad36c40b6adba453886f040dde5d55af7bd0f1bb (
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
|
- name: Installation des dépendances du playbook
dnf: name={{ item }} state=present
with_items:
- libselinux-python
- python-dnf
- python-xmpp
when: ansible_pkg_mgr == "dnf"
- name: Installation du module firewall pour python2
dnf: name=python-firewall state=present
when: ansible_pkg_mgr == "dnf" and ansible_distribution_version|int <= 27
- name: Installation du module firewall pour python3
dnf: name=python3-firewall state=present
when: ansible_pkg_mgr == "dnf" and ansible_distribution_version|int >= 28
- name: Installation des dépendances du playbook
yum: name={{ item }} state=present
with_items:
- libselinux-python
- python-dnf
- python-firewall
- python-xmpp
when: ansible_pkg_mgr == "yum"
|