File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
inventory-generation/notifications Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 27
27
path : " {{ directory }}/iac/inventories/notifications/inventory/group_vars/all"
28
28
state : directory
29
29
30
- - name : " Copy email template directory to engagement repo and process as jinja2"
30
+ - name : " Copy email template directory to Residency Engagement repo and process as jinja2"
31
31
template :
32
32
src : " {{ item }}"
33
33
dest : " {{ directory }}/iac/inventories/notifications/inventory/group_vars/all/{{ item | basename | regex_replace('.j2$') }}"
34
34
with_fileglob :
35
35
- " {{ email_templates_directory }}/hosting/residency/{{ language | default('en_us') }}/*.j2"
36
+ when : engagement_type | default('') == 'Residency'
37
+
38
+ - name : " Copy email template directory to DO500 Engagement repo and process as jinja2"
39
+ template :
40
+ src : " {{ item }}"
41
+ dest : " {{ directory }}/iac/inventories/notifications/inventory/group_vars/all/{{ item | basename | regex_replace('.j2$') }}"
42
+ with_fileglob :
43
+ - " {{ email_templates_directory }}/hosting/do500/{{ language | default('en_us') }}/*.j2"
44
+ when : engagement_type | default('') == 'DO500'
36
45
37
46
- name : " Create hosts file"
38
47
copy :
42
51
when :
43
52
- notifications_dir.stat.exists is false
44
53
- start_date is defined
45
- - engagement_type | default('') == 'Residency'
54
+ - engagement_type | default('') == 'Residency' or engagement_type | default('') == 'DO500'
46
55
- (hosting_environments is defined) and (hosting_environments | length > 0)
47
56
- (archive_date | default('2006-01-02T15:04:05.000Z') | to_datetime('%Y-%m-%dT%H:%M:%S.%fZ')).strftime('%s') > now(utc=true).strftime('%s')
48
-
57
+
49
58
- name : " Process list of users from template"
50
59
template :
51
60
src : list-of-users.yaml.j2
You can’t perform that action at this time.
0 commit comments