diff --git a/linux/compliance.yaml b/linux/compliance.yaml index 6ba6b75..8aaee90 100644 --- a/linux/compliance.yaml +++ b/linux/compliance.yaml @@ -71,7 +71,10 @@ with_items: - regexp: "^PermitRootLogin" line: "PermitRootLogin no" - notify: restart ssh + - name: Restart SSH service. + service: + name: sshd + state: restarted # Delete our network ansible key from the root user. - name: Delete our network ansible key (and other keys) from the root user.