diff --git a/roles/basessh/tasks/main.yml b/roles/basessh/tasks/main.yml index 8a8ae2f0e7..b57b770950 100644 --- a/roles/basessh/tasks/main.yml +++ b/roles/basessh/tasks/main.yml @@ -133,7 +133,7 @@ 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)" + when: "item.stat.exists and item.stat.mtime|int < (ansible_date_time.epoch - 25920000)" tags: - basessh - sshd_cert