roles/common: Move tags from subtask to main one

Child tasks inherit the tag of the parent.

Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
Alan Orth 2015-03-15 17:33:48 +03:00
parent 4efb6edb7e
commit 891bd35171
2 changed files with 1 additions and 2 deletions

View File

@ -1,10 +1,8 @@
--- ---
- name: Install iptables-persistent - name: Install iptables-persistent
apt: pkg=iptables-persistent update_cache=yes apt: pkg=iptables-persistent update_cache=yes
tags: firewall
- name: Copy /etc/iptables/rules.v4 - name: Copy /etc/iptables/rules.v4
template: src=iptables.j2 dest=/etc/iptables/rules.v4 owner=root mode=0600 template: src=iptables.j2 dest=/etc/iptables/rules.v4 owner=root mode=0600
notify: notify:
- restart iptables-persistent - restart iptables-persistent
tags: firewall

View File

@ -14,6 +14,7 @@
- include: iptables_Debian.yml - include: iptables_Debian.yml
when: ansible_os_family == 'Debian' when: ansible_os_family == 'Debian'
tags: firewall
- name: Reconfigure /etc/ssh/sshd_config - name: Reconfigure /etc/ssh/sshd_config
template: src=sshd_config_{{ansible_distribution}}-{{ansible_distribution_version}}.j2 dest=/etc/ssh/sshd_config owner=root group=root mode=0600 template: src=sshd_config_{{ansible_distribution}}-{{ansible_distribution_version}}.j2 dest=/etc/ssh/sshd_config owner=root group=root mode=0600