diff options
Diffstat (limited to 'ansible/roles/package-repository/tasks')
-rw-r--r-- | ansible/roles/package-repository/tasks/main.yml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ansible/roles/package-repository/tasks/main.yml b/ansible/roles/package-repository/tasks/main.yml index 763ee659..3ccce081 100644 --- a/ansible/roles/package-repository/tasks/main.yml +++ b/ansible/roles/package-repository/tasks/main.yml @@ -1,4 +1,8 @@ --- +- name: Get installed packages list + package_facts: + manager: "auto" + - name: Disable DNS management in Network Manager ini_file: path: /etc/NetworkManager/NetworkManager.conf @@ -11,7 +15,7 @@ group: root mode: 0644 backup: false - when: ansible_os_family == 'RedHat' + when: ansible_os_family == 'RedHat' and 'NetworkManager' in ansible_facts.packages notify: - Restart NetworkManager |