13 lines
408 B
YAML
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') }}"
|