From 784fdca2fe2ecef4abe5bd078ec96b4495ce383e Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Thu, 12 Mar 2020 09:52:54 +0000 Subject: [PATCH] Allow SSH through firewall --- roles/fedora/tasks/ssh.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/fedora/tasks/ssh.yml b/roles/fedora/tasks/ssh.yml index 46919f1..b4fca4a 100644 --- a/roles/fedora/tasks/ssh.yml +++ b/roles/fedora/tasks/ssh.yml @@ -18,3 +18,10 @@ name: sshd.service state: restarted when: changed_ssh_config.changed == true +- name: Allow SSH through firewall + become: true + firewalld: + service: ssh + permanent: yes + state: enabled + immediate: yes