Open reverse-proxy ports in firewalld configuration.
This commit is contained in:
parent
fd56fd6a89
commit
1382b3d6ff
@ -124,9 +124,6 @@
|
|||||||
state: present
|
state: present
|
||||||
network:
|
network:
|
||||||
- host
|
- host
|
||||||
ports:
|
|
||||||
- 80:80/tcp
|
|
||||||
- 443:443/tcp
|
|
||||||
volume:
|
volume:
|
||||||
- /mnt/volumes/reverse-proxy_conf/data:/etc/apache2/sites-available:Z
|
- /mnt/volumes/reverse-proxy_conf/data:/etc/apache2/sites-available:Z
|
||||||
- /mnt/volumes/reverse-proxy_conf_enabled/data:/etc/apache2/sites-enabled:Z
|
- /mnt/volumes/reverse-proxy_conf_enabled/data:/etc/apache2/sites-enabled:Z
|
||||||
@ -142,3 +139,15 @@
|
|||||||
state: started
|
state: started
|
||||||
enabled: true
|
enabled: true
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
|
- name: Allow HTTP and HTTPS ports
|
||||||
|
ansible.posix.firewalld:
|
||||||
|
zone: public
|
||||||
|
port: "{{ item }}"
|
||||||
|
permanent: true
|
||||||
|
immediate: true
|
||||||
|
state: enabled
|
||||||
|
become: true
|
||||||
|
with_items:
|
||||||
|
- 80/tcp
|
||||||
|
- 443/tcp
|
||||||
|
Loading…
Reference in New Issue
Block a user