Skip to content

Commit 03ebc17

Browse files
committed
fix: correct date time formatting
Signed-off-by: Chris Butler <chris.butler@redhat.com>
1 parent d6eb617 commit 03ebc17

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ansible/gen-certificate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656

5757
- name: Calculate days until expiry
5858
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 }}"
59+
days_until_expiry: "{{ ((cert_info.not_after | to_datetime('%Y%m%d%H%M%SZ')) - now()).days }}"
6060
when: existing_secret.resources | length > 0
6161

6262
- name: Set fact to generate new certificate if expiring soon

ansible/init-data-gzipper.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- name: Collect AWS facts and set secrurity group policies
1+
- name: gzip initdata
22
become: false
33
connection: local
44
hosts: localhost

0 commit comments

Comments
 (0)