Adding firewalld install check
This commit is contained in:
parent
6432c2c181
commit
c77ccef1f1
1 changed files with 6 additions and 1 deletions
|
@ -1,6 +1,11 @@
|
|||
---
|
||||
# file: roles/base/tasks/redhat_firewall.yml
|
||||
|
||||
- name: Install firewalld package
|
||||
package:
|
||||
name: firewalld
|
||||
state: present
|
||||
|
||||
- name: Allow SSH access through the firewall
|
||||
firewalld:
|
||||
service: ssh
|
||||
|
@ -22,4 +27,4 @@
|
|||
service:
|
||||
name: firewalld
|
||||
state: started
|
||||
enabled: yes
|
||||
enabled: yes
|
||||
|
|
Loading…
Reference in a new issue