xoxys.firewalld/tasks/main.yml
Robert Kaussow e2cc2fb381
All checks were successful
continuous-integration/drone/push Build is passing
feat: add option to disable firewalld
2022-10-17 08:47:09 +02:00

14 lines
379 B
YAML

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