Browse Source

workaround ufw bug, call ufw enable twice

Allen Riddell 10 years ago
parent
commit
5b8ba840a4
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      roles/common/tasks/ufw.yml

+ 5
- 1
roles/common/tasks/ufw.yml View File

@@ -30,5 +30,9 @@
30 30
   command: ufw --force enable
31 31
   when: "ufw_status.stdout.startswith('Status: inactive')"
32 32
   register: ufw_enable
33
-  # ignore error resulting from known bug on Debian 7.0
33
+  # ignore error resulting from known bug on Debian 7
34 34
   failed_when: ufw_enable|failed and not ansible_lsb['codename'] == 'wheezy'
35
+
36
+- name: Enable ufw again (workaround for known bug in Debian 7)
37
+  command: ufw --force enable
38
+  when: "ufw_status.stdout.startswith('Status: inactive') and ansible_lsb['codename'] == 'wheezy'"

Loading…
Cancel
Save