basessh: try and only act on items with a /etc/ssh path

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2022-11-18 21:53:12 -08:00
parent 19fea8d7b2
commit 60f6342682

View file

@ -122,7 +122,7 @@
set_fact:
certs_to_sign: "{{certs_to_sign}} + [ '{{item.item.path}}' ]"
with_items: "{{ssh_cert_files.results}}"
when: not item.stat.exists
when: not item.stat.exists and item.item.path.startswith('/etc/ssh')
tags:
- basessh
- sshd_cert