feat(podman_nginx): configure firewalld
This commit is contained in:
parent
b360d0e861
commit
b471a034a4
3 changed files with 12 additions and 0 deletions
|
|
@ -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
|
||||
|
|
@ -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 }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue