Allow SSH through firewall

This commit is contained in:
Anthony Perkins 2020-03-12 09:52:54 +00:00
parent c27968d306
commit 784fdca2fe

View file

@ -18,3 +18,10 @@
name: sshd.service name: sshd.service
state: restarted state: restarted
when: changed_ssh_config.changed == true when: changed_ssh_config.changed == true
- name: Allow SSH through firewall
become: true
firewalld:
service: ssh
permanent: yes
state: enabled
immediate: yes