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:
parent
19fea8d7b2
commit
60f6342682
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue