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

@ -4,6 +4,7 @@
when: ansible_os_family == "Ubuntu"
with_items:
- munin-node
tags: packages
# some nice things to have for munin-node on Ubuntu
- name: Install munin-node deps
@ -11,6 +12,7 @@
apt: name={{ item }} state=present
with_items:
- libwww-perl #for munin's nginx_status check
tags: packages
- name: Create munin-node.conf
template: src=munin-node.conf.j2 dest=/etc/munin/munin-node.conf

View File

@ -4,6 +4,7 @@
when: ansible_os_family == "Debian"
with_items:
- munin
tags: packages
- name: Create munin configuration file
template: src=munin.conf.j2 dest=/etc/munin/munin.conf owner=root group=root mode=0644