[c] bugfixing
This commit is contained in:
parent
8485672330
commit
6ee695461e
1 changed files with 4 additions and 4 deletions
|
@ -12,19 +12,19 @@
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
name: ufw
|
name: ufw
|
||||||
state: present
|
state: present
|
||||||
when: common_firewall_enable
|
when: common_firewall_enabled
|
||||||
|
|
||||||
- name: Enable UFW
|
- name: Enable UFW
|
||||||
community.general.ufw:
|
community.general.ufw:
|
||||||
state: enabled
|
state: enabled
|
||||||
logging: "on"
|
logging: "on"
|
||||||
when: common_firewall_enable
|
when: common_firewall_enabled
|
||||||
|
|
||||||
- name: Disable UFW Firewall
|
- name: Disable UFW Firewall
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
name: ufw
|
name: ufw
|
||||||
state: absent
|
state: absent
|
||||||
when: not common_firewall_enable
|
when: not common_firewall_enabled
|
||||||
|
|
||||||
- name: Reject incoming connections on WAN interface by default
|
- name: Reject incoming connections on WAN interface by default
|
||||||
community.general.ufw:
|
community.general.ufw:
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
interface: "{{ common_firewall_wan_interface }}"
|
interface: "{{ common_firewall_wan_interface }}"
|
||||||
when:
|
when:
|
||||||
- common_firewall_reject
|
- common_firewall_reject
|
||||||
- common_firewall_enable
|
- common_firewall_enabled
|
||||||
- common_firewall_wan_interface
|
- common_firewall_wan_interface
|
||||||
|
|
||||||
- name: Configure firewall rules
|
- name: Configure firewall rules
|
||||||
|
|
Loading…
Reference in a new issue