diff --git a/linux/compliance.yaml b/linux/compliance.yaml index 8aaee90..9ea5a7b 100644 --- a/linux/compliance.yaml +++ b/linux/compliance.yaml @@ -73,12 +73,11 @@ line: "PermitRootLogin no" - name: Restart SSH service. service: - name: sshd + name: ssh state: restarted # Delete our network ansible key from the root user. - name: Delete our network ansible key (and other keys) from the root user. file: path: /root/.ssh/authorized_keys - state: absent - ignore_errors: yes \ No newline at end of file + state: absent \ No newline at end of file