We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6eb617 commit 03ebc17Copy full SHA for 03ebc17
ansible/gen-certificate.yaml
@@ -56,7 +56,7 @@
56
57
- name: Calculate days until expiry
58
ansible.builtin.set_fact:
59
- days_until_expiry: "{{ ((cert_info.not_after | to_datetime('%Y%m%d%H%M%SZ')) - ansible_date_time.epoch | int | to_datetime('%s')).days }}"
+ days_until_expiry: "{{ ((cert_info.not_after | to_datetime('%Y%m%d%H%M%SZ')) - now()).days }}"
60
when: existing_secret.resources | length > 0
61
62
- name: Set fact to generate new certificate if expiring soon
ansible/init-data-gzipper.yaml
@@ -1,4 +1,4 @@
1
-- name: Collect AWS facts and set secrurity group policies
+- name: gzip initdata
2
become: false
3
connection: local
4
hosts: localhost
0 commit comments