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
|
||||
permanent: true
|
||||
state: enabled
|
||||
when: ansible_facts.services['firewalld'] is defined
|
||||
tags: firewall
|
||||
|
||||
- name: Enable cups
|
||||
|
|
|
@ -80,6 +80,7 @@
|
|||
loop:
|
||||
- http
|
||||
- https
|
||||
when: ansible_facts.services['firewalld'] is defined
|
||||
tags: firewall
|
||||
|
||||
- name: Enable nginx
|
||||
|
|
|
@ -41,6 +41,7 @@
|
|||
immediate: true
|
||||
permanent: true
|
||||
state: enabled
|
||||
when: ansible_facts.services['firewalld'] is defined
|
||||
notify: "Restart SSH server"
|
||||
tags: firewall
|
||||
|
||||
|
@ -49,6 +50,7 @@
|
|||
service: ssh
|
||||
permanent: true
|
||||
state: disabled
|
||||
when: ansible_facts.services['firewalld'] is defined
|
||||
tags: firewall
|
||||
|
||||
- name: Set trusted CA
|
||||
|
|
Loading…
Reference in a new issue