-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
25 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,30 @@ | ||
{ | ||
"rrule": "{{ schedule.rrule }}", | ||
"name": "{{ schedule.name }}", | ||
"description": "{{ schedule.description | default('') }}", | ||
{% if schedule.description is defined %} | ||
"description": "{{ schedule.description }}", | ||
{% endif %} | ||
{% if schedule.extra_data is defined %} | ||
"extra_data": {{ schedule.extra_data | default("{}") | to_json }}, | ||
{% endif %} | ||
{% if schedule.inventory is defined %} | ||
"inventory": "{{ schedule.inventory | default() }}", | ||
{% endif %} | ||
{% if schedule.scm_branch is defined %} | ||
"scm_branch": "{{ schedule.scm_branch | default('') }}", | ||
{% endif %} | ||
"job_type": null, | ||
"job_tags": "", | ||
"skip_tags": "", | ||
{% if schedule.limit is defined %} | ||
"limit": "{{ schedule.limit | default('') }}", | ||
{% endif %} | ||
"diff_mode": null, | ||
"verbosity": null, | ||
{% if unified_job_template_id is defined %} | ||
"unified_job_template": "{{ unified_job_template_id | default('') }}", | ||
{% endif %} | ||
{% if schedule.enabled is defined %} | ||
"enabled": {{ schedule.enabled | default(true)| bool | lower }} | ||
{% endif %} | ||
} |
9 changes: 0 additions & 9 deletions
9
roles/ansible/tower/manage-workflow-templates/templates/workflow-node-template.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,3 @@ | ||
{ | ||
"extra_data": {}, | ||
"inventory": null, | ||
"job_type": null, | ||
"job_tags": "", | ||
"skip_tags": "", | ||
"limit": "", | ||
"diff_mode": null, | ||
"verbosity": null, | ||
"credential": null, | ||
"unified_job_template": {{ job_template_id }} | ||
} |
10 changes: 10 additions & 0 deletions
10
roles/ansible/tower/manage-workflow-templates/templates/workflow-template.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,19 @@ | ||
{ | ||
"name": "{{ workflow_template.name }}", | ||
{% if workflow_template.description is defined %} | ||
"description": "{{ workflow_template.description | default('') }}", | ||
{% endif %} | ||
{% if workflow_template.extra_vars is defined %} | ||
"extra_vars": "{{ workflow_template.extra_vars | default('') }}", | ||
{% endif %} | ||
"organization": null, | ||
{% if workflow_template.allow_simultaneous is defined %} | ||
"allow_simultaneous": "{{ workflow_template.allow_simultaneous | default(true) }}", | ||
{% endif %} | ||
{% if workflow_template.ask_variables_on_launch is defined %} | ||
"ask_variables_on_launch": {{workflow_template.ask_variables_on_launch | default(false) }}, | ||
{% endif %} | ||
{% if workflow_template.webhook_service is defined %} | ||
"webhook_service": "{{ workflow_template.webhook_service | default('') }}" | ||
{% endif %} | ||
} |