feat(podman_nginx): configure firewalld

This commit is contained in:
Iain Learmonth 2025-11-08 20:56:53 +00:00
parent b360d0e861
commit b471a034a4
3 changed files with 12 additions and 0 deletions

View file

@ -8,3 +8,4 @@ podman_nginx_podman_rootless_user: nginx
# podman_nginx_systemd_service_target:
podman_nginx_systemd_service_requires: []
podman_nginx_additional_volumes: []
podman_nginx_firewalld_zone: public

View file

@ -1,4 +1,15 @@
---
- name: Podman Nginx | PATCH | Open firewall for http and https services
ansible.posix.firewalld:
zone: "{{ podman_nginx_firewalld_zone }}"
service: "{{ item }}"
permanent: true
immediate: true
state: enabled
with_items:
- http
- https
- name: Podman Nginx | PATCH | Create service configuration directories
ansible.builtin.file:
path: "/home/{{ podman_nginx_podman_rootless_user }}/{{ item }}"