diff --git a/tasks/ssh.yml b/tasks/ssh.yml index 31067a72bda419180ff8aced36149ed1ac2c0206..62df0f79b5350e64c4925cff89f762d37a9af3c1 100644 --- a/tasks/ssh.yml +++ b/tasks/ssh.yml @@ -15,6 +15,7 @@ - name: Fix SELinux memes command: semanage port -m -t ssh_port_t -p tcp {{ ssh.port }} + when: selinux.changed - name: Ensure sshd is started and enabled to start at boot. service: