diff --git a/roles/common/tasks/firewall_Debian.yml b/roles/common/tasks/firewall_Debian.yml index c1b9102..a8b64e4 100644 --- a/roles/common/tasks/firewall_Debian.yml +++ b/roles/common/tasks/firewall_Debian.yml @@ -1,7 +1,7 @@ --- - name: Install firewalld and deps when: ansible_distribution_major_version | version_compare('8', '>=') - apt: pkg={{ item }} state=latest + apt: pkg={{ item }} state=present with_items: - firewalld - tidy diff --git a/roles/common/tasks/firewall_Ubuntu.yml b/roles/common/tasks/firewall_Ubuntu.yml index 7992925..277ee3e 100644 --- a/roles/common/tasks/firewall_Ubuntu.yml +++ b/roles/common/tasks/firewall_Ubuntu.yml @@ -1,7 +1,7 @@ --- - name: Install firewalld and deps when: ansible_distribution_version | version_compare('15.04', '>=') - apt: pkg={{ item }} state=latest + apt: pkg={{ item }} state=present with_items: - firewalld - tidy