Skip to content

Commit 7e11018

Browse files
authored
Merge branch 'main' into generalize-secrets
2 parents 439aca6 + 1b99369 commit 7e11018

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

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)