basessh: try and check path in renew path too
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
6959217b11
commit
4cdee4e355
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@
|
||||||
set_fact:
|
set_fact:
|
||||||
certs_to_sign: "{{certs_to_sign}} + [ '{{item.item.path}}' ]"
|
certs_to_sign: "{{certs_to_sign}} + [ '{{item.item.path}}' ]"
|
||||||
with_items: "{{ssh_cert_files.results}}"
|
with_items: "{{ssh_cert_files.results}}"
|
||||||
when: "item.stat.exists and item.stat.mtime|int < (lookup('pipe', 'date +%s')|int - 25920000)"
|
when: "item.stat.exists and item.item.path.startswith('/etc/ssh') and item.stat.mtime|int < (lookup('pipe', 'date +%s')|int - 25920000)"
|
||||||
tags:
|
tags:
|
||||||
- basessh
|
- basessh
|
||||||
- sshd_cert
|
- sshd_cert
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue