Adding firewalld install check

This commit is contained in:
Tyler Hale 2022-07-08 05:39:57 -06:00
parent 6432c2c181
commit c77ccef1f1
Signed by: Tyler
GPG key ID: C7CC4B910D88EF96

View file

@ -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