r/ssh-host-certs: Fix restart handler

The _ssh-host-certs.target_ unit does not exist any more.  It was
provided by the _sshca-cli-systemd_ package to allow machines to
automatically request their SSH host certificates on first boot.  It had
a `ConditionFirstBoot=` requirement, which made it not work at any other
time, so there was no reason to move it into the Ansible configuration
policy.  Instead, we can use the _ssh-host-certs-renew.target_ unit to
trigger requesting or renewing host certificates.
master
Dustin 2025-09-17 06:36:05 -05:00
parent 8a7faac35b
commit 142682ce2f
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
- name: restart ssh-host-certs.target - name: restart ssh-host-certs-renew.target
systemd: systemd:
name: ssh-host-certs.target name: ssh-host-certs-renew.target
state: started state: started
- name: reload sshd - name: reload sshd