[c] bugfixes

This commit is contained in:
Sangelo 2024-10-16 21:53:09 +02:00
parent d7ea614a66
commit 664fa68b17

View file

@ -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: