Fix some ansible-lint complaints.

This commit is contained in:
Andreas B. Mundt 2022-06-11 12:42:02 +02:00 committed by Andreas B. Mundt
parent c7030c9245
commit 2cf34e8e55
64 changed files with 357 additions and 297 deletions

View file

@ -2,13 +2,15 @@
template:
src: interfaces-static.j2
dest: /etc/network/interfaces.d/static
mode: 0644
notify: "bring up LAN interface"
- name: install firewalld package
apt: name=firewalld state=latest
apt: name=firewalld state=latest # noqa package-latest
notify: "start firewalld"
- meta: flush_handlers
- name: flush all handlers
meta: flush_handlers
## Do not run the following in the installer:
@ -17,7 +19,7 @@
firewalld:
zone: public
interface: "{{ if_wan }}"
permanent: yes
permanent: true
state: enabled
immediate: true
when: not run_in_installer|default(false)|bool
@ -26,7 +28,7 @@
firewalld:
zone: public
masquerade: 'yes'
permanent: yes
permanent: true
state: enabled
immediate: true
when: not run_in_installer|default(false)|bool
@ -35,7 +37,7 @@
firewalld:
zone: internal
interface: "{{ if_lan }}"
permanent: yes
permanent: true
state: enabled
immediate: true
when: not run_in_installer|default(false)|bool
@ -44,7 +46,7 @@
firewalld:
zone: internal
service: "{{ item }}"
permanent: yes
permanent: true
state: enabled
immediate: true
with_items: