Do the loop

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2018-08-16 17:39:55 +00:00
parent d31019a444
commit 9b48361d76

View file

@ -132,6 +132,7 @@
- name: Get soon-to-expire certificates to sign
set_fact:
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)"
tags:
- basessh