From 948058151a642668527a841ba9bec28087474900 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Fri, 29 Dec 2017 20:11:55 +0200 Subject: [PATCH] roles/common: Fix issues raised by ansible-lint [ANSIBLE0010] Package installs should not use latest --- roles/common/tasks/firewall_Debian.yml | 2 +- roles/common/tasks/firewall_Ubuntu.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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