|
@@ -29,3 +29,10 @@
|
29
|
29
|
- name: Enable ufw
|
30
|
30
|
command: ufw --force enable
|
31
|
31
|
when: "ufw_status.stdout.startswith('Status: inactive')"
|
|
32
|
+ register: ufw_enable
|
|
33
|
+ # ignore error resulting from known bug on Debian 7
|
|
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'"
|