Skip to content

Commit 29236d6

Browse files
authored
Add engagement dates to email notification vars (#33)
1 parent 71e48b1 commit 29236d6

File tree

1 file changed

+14
-2
lines changed
  • inventory-generation/identity-management

1 file changed

+14
-2
lines changed

inventory-generation/identity-management/main.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,23 @@
5959

6060
- name: "Assemble inventory"
6161
set_fact:
62-
claim_content: "{{ { 'customer_name': customer_name, 'project_name': project_name, 'ipa_validate_certs': ipa_validate_certs, 'ipa_host': ipa_host, 'ipa_admin_user': ipa_admin_user, 'ipa_admin_password': ipa_admin_password, 'lodestar_identities': { 'users': users, 'groups': usrgrp } } | to_nice_yaml(indent=2) }}"
62+
claim_content:
63+
env_end_date: "{{ (archive_date | to_datetime('%Y-%m-%dT%H:%M:%S%z')).strftime('%d %b %Y') }}"
64+
end_date: "{{ (end_date | to_datetime('%Y-%m-%dT%H:%M:%S%z')).strftime('%d %b %Y') }}"
65+
start_date: "{{ (start_date | to_datetime('%Y-%m-%dT%H:%M:%S%z')).strftime('%d %b %Y') }}"
66+
customer_name: "{{ customer_name }}"
67+
project_name: "{{ project_name }}"
68+
ipa_validate_certs: "{{ ipa_validate_certs }}"
69+
ipa_host: "{{ ipa_host }}"
70+
ipa_admin_user: "{{ ipa_admin_user }}"
71+
ipa_admin_password: "{{ ipa_admin_password }}"
72+
lodestar_identities:
73+
users: "{{ users }}"
74+
groups: "{{ usrgrp }}"
6375

6476
- name: "Write inventory to file"
6577
copy:
66-
content: "{{ claim_content }}"
78+
content: "{{ claim_content | to_nice_yaml(indent=2) }}"
6779
dest: "{{ directory }}/iac/inventories/identity-management/inventory/group_vars/all.yml"
6880

6981
- name: "Create hosts file"

0 commit comments

Comments
 (0)