fix(firewalld): adjust firewall only when it's set up
Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
parent
eaaf707b60
commit
9d89a874ec
3 changed files with 4 additions and 0 deletions
|
@ -15,6 +15,7 @@
|
||||||
immediate: true
|
immediate: true
|
||||||
permanent: true
|
permanent: true
|
||||||
state: enabled
|
state: enabled
|
||||||
|
when: ansible_facts.services['firewalld'] is defined
|
||||||
tags: firewall
|
tags: firewall
|
||||||
|
|
||||||
- name: Enable cups
|
- name: Enable cups
|
||||||
|
|
|
@ -80,6 +80,7 @@
|
||||||
loop:
|
loop:
|
||||||
- http
|
- http
|
||||||
- https
|
- https
|
||||||
|
when: ansible_facts.services['firewalld'] is defined
|
||||||
tags: firewall
|
tags: firewall
|
||||||
|
|
||||||
- name: Enable nginx
|
- name: Enable nginx
|
||||||
|
|
|
@ -41,6 +41,7 @@
|
||||||
immediate: true
|
immediate: true
|
||||||
permanent: true
|
permanent: true
|
||||||
state: enabled
|
state: enabled
|
||||||
|
when: ansible_facts.services['firewalld'] is defined
|
||||||
notify: "Restart SSH server"
|
notify: "Restart SSH server"
|
||||||
tags: firewall
|
tags: firewall
|
||||||
|
|
||||||
|
@ -49,6 +50,7 @@
|
||||||
service: ssh
|
service: ssh
|
||||||
permanent: true
|
permanent: true
|
||||||
state: disabled
|
state: disabled
|
||||||
|
when: ansible_facts.services['firewalld'] is defined
|
||||||
tags: firewall
|
tags: firewall
|
||||||
|
|
||||||
- name: Set trusted CA
|
- name: Set trusted CA
|
||||||
|
|
Loading…
Reference in a new issue