Skip to content

Commit

Permalink
Merge pull request #2 from DelphicOkami/patch-1
Browse files Browse the repository at this point in the history
Task isolation by tags
  • Loading branch information
markahesketh authored Jan 10, 2018
2 parents 63ef5a9 + e2e40bc commit 634547e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@
dest: "/tmp/ansible.ufw.rules"
mode: 0600
register: ufw_old_rules
tags:
- configuration

- name: Reset firewall rules
ufw:
state: reset
when: ufw_old_rules.changed
tags:
- skip_ansible_lint # When changed used to identify removed rules
- configuration

- name: Apply custom firewall
ufw:
Expand All @@ -35,8 +38,11 @@
when: ufw_old_rules.changed
tags:
- skip_ansible_lint # When changed used to identify removed rules
- configuration

- name: Ensure firewall is enabled with default policy
ufw:
state: enabled
policy: "{{ ufw_default_policy }}"
tags:
- configuration

0 comments on commit 634547e

Please sign in to comment.