Directly restart sshd after signing certs
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
73bd8b0db0
commit
0eac85dcb2
1 changed files with 11 additions and 0 deletions
|
@ -183,6 +183,17 @@
|
|||
- sshd
|
||||
- base
|
||||
|
||||
- name: Restart sshd in case we just signed a new certificate so it gets applied
|
||||
service: name=sshd state=restarted
|
||||
when: "certs_to_sign | length != 0"
|
||||
tags:
|
||||
- basessh
|
||||
- sshd_cert
|
||||
- sshd_config
|
||||
- config
|
||||
- sshd
|
||||
- base
|
||||
|
||||
- name: make sure there is no old ssh host key for the host still around
|
||||
local_action: known_hosts path={{item}} host={{ inventory_hostname }} state=absent
|
||||
ignore_errors: True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue