[c] bugfixes
This commit is contained in:
parent
d7ea614a66
commit
664fa68b17
1 changed files with 6 additions and 4 deletions
|
@ -40,15 +40,17 @@
|
|||
community.general.ufw:
|
||||
port: "{{ rule.port }}"
|
||||
rule: "{{ rule.rule | default('allow') }}"
|
||||
delete: "{{ true if rule.state == 'absent' else false | default(false) }}"
|
||||
direction: "{{ rule.direction | default('in') }}"
|
||||
delete: "{{ true if rule.state == 'absent' else omit | default(omit) }}"
|
||||
direction: "{{ rule.direction | default(omit) }}"
|
||||
proto: "{{ rule.protocol | default('tcp') }}"
|
||||
interface: "{{ rule.interface if rule.interface != 'all' else omit }}"
|
||||
interface: "{{ rule.interface if rule.interface != 'all' else omit | default(omit) }}"
|
||||
comment: "{{ rule.comment | default('Custom rule for port {{ rule.port }} on {{ rule.interface }}') }}"
|
||||
loop: "{{ common_firewall | default([]) }}"
|
||||
loop_control:
|
||||
loop_var: rule
|
||||
when: common_firewall_enable
|
||||
when:
|
||||
- common_firewall_enabled
|
||||
- common_firewall
|
||||
|
||||
- name: Install sudo
|
||||
ansible.builtin.apt:
|
||||
|
|
Loading…
Reference in a new issue