added the ability to trigger or not firewalld #1
This commit is contained in:
parent
f83fd0cc95
commit
ea81a45931
|
@ -5,3 +5,5 @@ cockpit_packages:
|
||||||
- cockpit
|
- cockpit
|
||||||
- cockpit-bridge
|
- cockpit-bridge
|
||||||
- cockpit-machines
|
- cockpit-machines
|
||||||
|
cockpit_use_firewalld: false
|
||||||
|
cockpit_listen_port: 9090
|
||||||
|
|
|
@ -14,10 +14,11 @@
|
||||||
|
|
||||||
- name: enable firewall
|
- name: enable firewall
|
||||||
firewalld:
|
firewalld:
|
||||||
service: cockpit
|
port: "{{ cockpit_listen_port }}/tcp"
|
||||||
permanent: true
|
permanent: true
|
||||||
immediate: true
|
immediate: true
|
||||||
state: enabled
|
state: enabled
|
||||||
|
when: cockpit_use_firewalld
|
||||||
|
|
||||||
- name: reload systemd if unit file changed
|
- name: reload systemd if unit file changed
|
||||||
command: systemctl daemon-reload
|
command: systemctl daemon-reload
|
||||||
|
|
Loading…
Reference in New Issue
Block a user