restart ssh after fucking with config
This commit is contained in:
parent
f9e48a438a
commit
66cea8c669
@ -33,4 +33,9 @@
|
||||
path: /etc/ssh/sshd_config
|
||||
line: "AllowUsers tormakris ansible backup"
|
||||
when: checkallowusers.found == 0
|
||||
|
||||
- name: "Restart sshd"
|
||||
service:
|
||||
name: sshd
|
||||
status: restarted
|
||||
...
|
||||
|
@ -38,4 +38,9 @@
|
||||
path: /etc/ssh/sshd_config
|
||||
line: "AllowUsers tormakris ansible service-user"
|
||||
when: checkallowusers.found == 0
|
||||
|
||||
- name: "Restart sshd"
|
||||
service:
|
||||
name: sshd
|
||||
status: restarted
|
||||
...
|
||||
|
Loading…
Reference in New Issue
Block a user