Skip to content

Commit 9c1e90d

Browse files
authored
Change description of project and add defaults to user lists (#60)
1 parent b509544 commit 9c1e90d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

inventory-generation/tower_jobs_schedules/templates/tower-management-host.yaml.j2

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ansible_tower:
1212
admin_password: "{{ ansible_tower_admin_password }}"
1313
projects:
1414
- name: "{{ customer_engagement }}-project"
15-
description: "{{ description }}"
15+
description: "Project for {{ customer_engagement }}"
1616
organization: "{{ organization }}"
1717
scm_type: "git"
1818
scm_url: "{{ url }}"
@@ -61,7 +61,7 @@ ansible_tower:
6161
extra_data:
6262
body: {% raw %}"{{ welcome_internal.body }}"{% endraw %}
6363
title: {% raw %}"{{ welcome_internal.title }}"{% endraw %}
64-
list_of_users: {% raw %}"{{ internal.list_of_users }}"{% endraw %}
64+
list_of_users: {% raw %}"{{ internal.list_of_users | default([]) }}"{% endraw %}
6565
- name: "{{ customer_engagement }}-welcome-all"
6666
description: "Welcome notification for {{ company_name }} and {{ customer_name }}"
6767
{% raw -%}
@@ -72,7 +72,7 @@ ansible_tower:
7272
extra_data:
7373
body: {% raw %}"{{ welcome_all.body }}"{% endraw %}
7474
title: {% raw %}"{{ welcome_all.title }}"{% endraw %}
75-
list_of_users: {% raw %}"{{ full.list_of_users }}"{% endraw %}
75+
list_of_users: {% raw %}"{{ full.list_of_users | default([]) }}"{% endraw %}
7676
- name: "{{ customer_engagement }}-pre-offboard"
7777
description: "Pre-offboard"
7878
{% raw -%}
@@ -83,7 +83,7 @@ ansible_tower:
8383
extra_data:
8484
body: {% raw %}"{{ pre_offboard.body }}"{% endraw %}
8585
title: {% raw %}"{{ pre_offboard.title }}"{% endraw %}
86-
list_of_users: {% raw %}"{{ full.list_of_users }}"{% endraw %}
86+
list_of_users: {% raw %}"{{ full.list_of_users | default([]) }}"{% endraw %}
8787
- name: "{{ customer_engagement }}-offboard-1"
8888
description: "Offboard 1"
8989
{% raw -%}
@@ -94,7 +94,7 @@ ansible_tower:
9494
extra_data:
9595
body: {% raw %}"{{ offboard_1.body }}"{% endraw %}
9696
title: {% raw %}"{{ offboard_1.title }}"{% endraw %}
97-
list_of_users: {% raw %}"{{ full.list_of_users }}"{% endraw %}
97+
list_of_users: {% raw %}"{{ full.list_of_users | default([]) }}"{% endraw %}
9898
- name: "{{ customer_engagement }}-offboard-2"
9999
description: "Offboard 2"
100100
{% raw -%}
@@ -105,7 +105,7 @@ ansible_tower:
105105
extra_data:
106106
body: {% raw %}"{{ offboard_2.body }}"{% endraw %}
107107
title: {% raw %}"{{ offboard_2.title }}"{% endraw %}
108-
list_of_users: {% raw %}"{{ full.list_of_users }}"{% endraw %}
108+
list_of_users: {% raw %}"{{ full.list_of_users | default([]) }}"{% endraw %}
109109
- name: "{{ customer_engagement }}-offboard-3"
110110
description: "Offboard 3"
111111
{% raw -%}
@@ -116,7 +116,7 @@ ansible_tower:
116116
extra_data:
117117
body: {% raw %}"{{ offboard_3.body }}"{% endraw %}
118118
title: {% raw %}"{{ offboard_3.title }}"{% endraw %}
119-
list_of_users: {% raw %}"{{ full.list_of_users }}"{% endraw %}
119+
list_of_users: {% raw %}"{{ full.list_of_users | default([]) }}"{% endraw %}
120120
- name: "{{ customer_engagement }}-shutoff"
121121
description: "Shutoff e-mail for the {{ customer_engagement }} engagement"
122122
{% raw -%}
@@ -127,4 +127,4 @@ ansible_tower:
127127
extra_data:
128128
body: {% raw %}"{{ shutoff.body }}"{% endraw %}
129129
title: {% raw %}"{{ shutoff.title }}"{% endraw %}
130-
list_of_users: {% raw %}"{{ full.list_of_users }}"{% endraw %}
130+
list_of_users: {% raw %}"{{ full.list_of_users | default([]) }}"{% endraw %}

0 commit comments

Comments
 (0)