restart ssh service w/o roles

This commit is contained in:
iRaven 2024-04-28 20:04:10 -05:00
parent 01124f11f6
commit 1c7dc3ff86

View File

@ -71,7 +71,10 @@
with_items: with_items:
- regexp: "^PermitRootLogin" - regexp: "^PermitRootLogin"
line: "PermitRootLogin no" line: "PermitRootLogin no"
notify: restart ssh - name: Restart SSH service.
service:
name: sshd
state: restarted
# Delete our network ansible key from the root user. # Delete our network ansible key from the root user.
- name: Delete our network ansible key (and other keys) from the root user. - name: Delete our network ansible key (and other keys) from the root user.