From da8ef971ee42591646e093eb2311d6d201a1d3ba Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Sat, 19 Nov 2022 10:33:26 -0800 Subject: [PATCH] basessh: inner variable no longer needs escaped Signed-off-by: Kevin Fenzi --- roles/basessh/tasks/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/basessh/tasks/main.yml b/roles/basessh/tasks/main.yml index 29ac0dec7f..3fffbe58f7 100644 --- a/roles/basessh/tasks/main.yml +++ b/roles/basessh/tasks/main.yml @@ -120,9 +120,9 @@ - name: Set list of certs to sign 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: not item.stat.exists and item.item.path.startswith('/etc/ssh') + when: not item.stat.exists tags: - basessh - sshd_cert @@ -134,9 +134,9 @@ # Renew if last mod was more than 10 months ago - name: Get soon-to-expire certificates to sign 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.item.path.startswith('/etc/ssh') and item.stat.mtime|int < (lookup('pipe', 'date +%s')|int - 25920000)" + when: "item.stat.exists and item.stat.mtime|int < (lookup('pipe', 'date +%s')|int - 25920000)" tags: - basessh - sshd_cert