Add firewalld configuration role, and have services that need it depend on it.

This commit is contained in:
2026-08-09 11:29:08 -05:00
parent 6c7ecfc724
commit 331f8beb3b
68 changed files with 547 additions and 33 deletions
+2 -1
View File
@@ -45,6 +45,7 @@ galaxy_info:
#
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
# Maximum 20 tags per role.
dependencies: []
dependencies:
- role: ensure_firewalld
# List your role dependencies here, one per line. Be sure to remove the '[]' above,
# if you add dependencies to this list.
+3 -3
View File
@@ -119,13 +119,13 @@
- ansible_facts.packages["firewalld"] is defined
- ansible_facts.packages["python3-firewall"] is defined
- ensure_apache is defined
- ensure_apache.firewall_list is defined
- ensure_apache.firewall_list is iterable
- ensure_apache.firewalld_list is defined
- ensure_apache.firewalld_list is iterable
ansible.posix.firewalld:
permanent: '{{ item.permanent }}'
service: '{{ item.service }}'
state: '{{ item.state }}'
loop: '{{ ensure_apache.firewall_list }}'
loop: '{{ ensure_apache.firewalld_list }}'
loop_control:
label: '{{ item.service }} will be {{ item.state }}'
notify:
@@ -33,7 +33,7 @@ package_list:
state: present
- name: php-xml
state: present
firewall_list:
firewalld_list:
- permanent: 'yes'
service: http
state: enabled
@@ -33,7 +33,7 @@ package_list:
state: present
- name: php-xml
state: present
firewall_list:
firewalld_list:
- permanent: 'yes'
service: http
state: enabled
@@ -33,7 +33,7 @@ package_list:
state: present
- name: php-xml
state: present
firewall_list:
firewalld_list:
- permanent: 'yes'
service: http
state: enabled