xoxys.firewalld/tasks/main.yml
Robert Kaussow 05fb3977df
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/docs Pipeline was successful
ci/woodpecker/push/notify Pipeline was successful
refctor: rework ci to ue ansible-lint and fix molecule
2024-08-19 16:06:02 +02:00

13 lines
408 B
YAML

---
- name: Configure firewalld
ansible.builtin.include_tasks: firewalld.yml
when: firewalld_enabled | bool
- name: Ensure service has expected state
ansible.builtin.service:
name: firewalld
daemon_reload: True
enabled: "{{ firewalld_enabled | bool }}"
masked: "{{ not firewalld_enabled | bool }}"
state: "{{ firewalld_enabled | bool | ternary('started', 'stopped', 'started') }}"