restart ssh after fucking with config

This commit is contained in:
Torma Kristóf 2022-04-16 21:03:00 +02:00
parent f9e48a438a
commit 66cea8c669
2 changed files with 10 additions and 0 deletions

View File

@ -33,4 +33,9 @@
path: /etc/ssh/sshd_config path: /etc/ssh/sshd_config
line: "AllowUsers tormakris ansible backup" line: "AllowUsers tormakris ansible backup"
when: checkallowusers.found == 0 when: checkallowusers.found == 0
- name: "Restart sshd"
service:
name: sshd
status: restarted
... ...

View File

@ -38,4 +38,9 @@
path: /etc/ssh/sshd_config path: /etc/ssh/sshd_config
line: "AllowUsers tormakris ansible service-user" line: "AllowUsers tormakris ansible service-user"
when: checkallowusers.found == 0 when: checkallowusers.found == 0
- name: "Restart sshd"
service:
name: sshd
status: restarted
... ...