1 2 3 4 5 6 7
- name: Installation de bind yum: name=bind state=present when: ansible_pkg_mgr == "yum" - name: Installation de bind dnf: name=bind state=present when: ansible_pkg_mgr == "dnf"