caddy: Use firewalld
This commit is contained in:
@@ -4,6 +4,7 @@ dependencies:
|
|||||||
vars:
|
vars:
|
||||||
compatcheck_supported_distributions:
|
compatcheck_supported_distributions:
|
||||||
- name: debian
|
- name: debian
|
||||||
version_min: 11
|
version_min: 12
|
||||||
- name: ubuntu
|
- name: ubuntu
|
||||||
version_min: 22
|
version_min: 22
|
||||||
|
- role: uumas.general.firewalld
|
||||||
|
|||||||
@@ -41,3 +41,14 @@
|
|||||||
validate: 'caddy validate --config %s --adapter caddyfile'
|
validate: 'caddy validate --config %s --adapter caddyfile'
|
||||||
backup: true
|
backup: true
|
||||||
notify: Reload caddy
|
notify: Reload caddy
|
||||||
|
|
||||||
|
- name: Open ports for caddy
|
||||||
|
ansible.posix.firewalld:
|
||||||
|
service: "{{ item }}"
|
||||||
|
state: enabled
|
||||||
|
permanent: true
|
||||||
|
immediate: true
|
||||||
|
loop:
|
||||||
|
- http
|
||||||
|
- https
|
||||||
|
- http3
|
||||||
|
|||||||
Reference in New Issue
Block a user