some more minor shit

This commit is contained in:
iRaven 2024-04-28 20:09:13 -05:00
parent 1c7dc3ff86
commit 60a5718c10

View File

@ -73,12 +73,11 @@
line: "PermitRootLogin no" line: "PermitRootLogin no"
- name: Restart SSH service. - name: Restart SSH service.
service: service:
name: sshd name: ssh
state: restarted 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.
file: file:
path: /root/.ssh/authorized_keys path: /root/.ssh/authorized_keys
state: absent state: absent
ignore_errors: yes