Sfoglia il codice sorgente

workaround ufw bug, call ufw enable twice

Allen Riddell 11 anni fa
parent
commit
5b8ba840a4
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 5
    1
      roles/common/tasks/ufw.yml

+ 5
- 1
roles/common/tasks/ufw.yml Vedi 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…
Annulla
Salva