some more minor shit
This commit is contained in:
parent
1c7dc3ff86
commit
60a5718c10
@ -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
|
|
Loading…
x
Reference in New Issue
Block a user