From 891bd35171d9260ff2d82dfc11dc61bc83cbac9d Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sun, 15 Mar 2015 17:33:48 +0300 Subject: [PATCH] roles/common: Move tags from subtask to main one Child tasks inherit the tag of the parent. Signed-off-by: Alan Orth --- roles/common/tasks/iptables_Debian.yml | 2 -- roles/common/tasks/main.yml | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/roles/common/tasks/iptables_Debian.yml b/roles/common/tasks/iptables_Debian.yml index edc8c93..186bf67 100644 --- a/roles/common/tasks/iptables_Debian.yml +++ b/roles/common/tasks/iptables_Debian.yml @@ -1,10 +1,8 @@ --- - name: Install iptables-persistent apt: pkg=iptables-persistent update_cache=yes - tags: firewall - name: Copy /etc/iptables/rules.v4 template: src=iptables.j2 dest=/etc/iptables/rules.v4 owner=root mode=0600 notify: - restart iptables-persistent - tags: firewall diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index fc87176..412dcb6 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -14,6 +14,7 @@ - include: iptables_Debian.yml when: ansible_os_family == 'Debian' + tags: firewall - 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