diff options
author | Matthieu Saulnier <fantom@fedoraproject.org> | 2018-09-15 21:19:15 +0200 |
---|---|---|
committer | Matthieu Saulnier <fantom@fedoraproject.org> | 2018-09-15 21:19:15 +0200 |
commit | 93421493605c36690fbef1713f4d987b18ec3f46 (patch) | |
tree | 52aa2e324ec78669f6adb524d8702e6ee49774e1 /roles/common/tasks/deps.yml | |
parent | e891ba9ad5335008ad1507d483f683b5d66bf679 (diff) | |
download | playbooks-ansible-93421493605c36690fbef1713f4d987b18ec3f46.tar.gz playbooks-ansible-93421493605c36690fbef1713f4d987b18ec3f46.tar.xz playbooks-ansible-93421493605c36690fbef1713f4d987b18ec3f46.zip |
Compat for fc28 and arm32v7 arch
Diffstat (limited to 'roles/common/tasks/deps.yml')
-rw-r--r-- | roles/common/tasks/deps.yml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/roles/common/tasks/deps.yml b/roles/common/tasks/deps.yml index cefac63..905bd13 100644 --- a/roles/common/tasks/deps.yml +++ b/roles/common/tasks/deps.yml @@ -3,9 +3,16 @@ with_items: - libselinux-python - python-dnf - - python-firewall 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: |