- 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"