File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1414 pre_tasks :
1515 - name : Update apt cache.
1616 apt : update_cache=true cache_valid_time=1200
17- when : ansible_os_family == 'Debian'
17+ when : ansible_facts.os_family == 'Debian'
1818 changed_when : false
1919
2020 roles :
Original file line number Diff line number Diff line change 55 ignore_errors : true
66 changed_when : false
77 when :
8- - ansible_os_family == "RedHat"
8+ - ansible_facts.os_family == "RedHat"
99 - firewall_disable_firewalld
1010 check_mode : false
1111
1515 state : stopped
1616 enabled : false
1717 when :
18- - ansible_os_family == "RedHat"
18+ - ansible_facts.os_family == "RedHat"
1919 - firewall_disable_firewalld
2020 - firewalld_installed.rc == 0
2121
2525 ignore_errors : true
2626 changed_when : false
2727 when :
28- - ansible_distribution == "Ubuntu"
28+ - ansible_facts.distribution == "Ubuntu"
2929 - firewall_disable_ufw
3030 check_mode : false
3131
3535 state : stopped
3636 enabled : false
3737 when :
38- - ansible_distribution == "Ubuntu"
38+ - ansible_facts.distribution == "Ubuntu"
3939 - firewall_disable_ufw
4040 - ufw_installed.rc == 0
4141
4545 ignore_errors : true
4646 changed_when : false
4747 when :
48- - ansible_distribution == "Archlinux"
48+ - ansible_facts.distribution == "Archlinux"
4949 - firewall_disable_ufw
5050 check_mode : false
5151
5555 state : stopped
5656 enabled : false
5757 when :
58- - ansible_distribution == "Archlinux"
58+ - ansible_facts.distribution == "Archlinux"
5959 - firewall_disable_ufw
6060 - ufw_installed.rc == 0
Original file line number Diff line number Diff line change 2323 owner : root
2424 group : root
2525 mode : 0755
26- when : " ansible_service_mgr != 'systemd'"
26+ when : " ansible_facts.service_mgr != 'systemd'"
2727
2828- name : Copy firewall systemd unit file into place (for systemd systems).
2929 template :
3232 owner : root
3333 group : root
3434 mode : 0644
35- when : " ansible_service_mgr == 'systemd'"
35+ when : " ansible_facts.service_mgr == 'systemd'"
3636
3737- name : Configure the firewall service.
3838 service :
You can’t perform that action at this time.
0 commit comments