Do the loop
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
d31019a444
commit
9b48361d76
1 changed files with 1 additions and 0 deletions
|
@ -132,6 +132,7 @@
|
||||||
- name: Get soon-to-expire certificates to sign
|
- name: Get soon-to-expire certificates to sign
|
||||||
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}}"
|
||||||
when: "item.stat.exists and item.stat.mtime < (ansible_date_time.epoch - 25920000)"
|
when: "item.stat.exists and item.stat.mtime < (ansible_date_time.epoch - 25920000)"
|
||||||
tags:
|
tags:
|
||||||
- basessh
|
- basessh
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue