|
@@ -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'"
|