Add 'packages' tag to any task doing package stuff

For idempotence we need to run all apt-related tasks, like editing
source files, adding keys, installing packages, etc, when running
the 'packages' tag.
This commit is contained in:
2016-08-14 16:33:48 +03:00
parent 7589136453
commit e343ddc9a6
8 changed files with 15 additions and 9 deletions

View File

@ -5,6 +5,7 @@
with_items:
- firewalld
- tidy
tags: packages
- name: Copy firewalld public zone file
when: ansible_distribution_major_version == '8'

View File

@ -2,6 +2,7 @@
- name: Install iptables-persistent
when: ansible_distribution_version == '14.04'
apt: pkg=iptables-persistent update_cache=yes
tags: packages
- name: Copy /etc/iptables/rules.v4
when: ansible_distribution_version == '14.04'
@ -21,6 +22,7 @@
with_items:
- firewalld
- tidy
tags: packages
- name: Copy firewalld public zone file
when: ansible_distribution_version >= '15.04'