restart ssh after fucking with config
This commit is contained in:
		| @@ -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 | ||||||
| ... | ... | ||||||
|   | |||||||
| @@ -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 | ||||||
| ... | ... | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user