restart ssh service w/o roles
This commit is contained in:
parent
01124f11f6
commit
1c7dc3ff86
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user