sync content
This commit is contained in:
@@ -1,25 +0,0 @@
|
|||||||
---
|
|
||||||
test_survey:
|
|
||||||
name: L3 Survey
|
|
||||||
description: Prompt for interface name, ipv4 and ipv6
|
|
||||||
spec:
|
|
||||||
- type: text
|
|
||||||
question_name: Which interface?
|
|
||||||
question_description: Please specify the interface name
|
|
||||||
variable: interface_name
|
|
||||||
required: true
|
|
||||||
default: lo0
|
|
||||||
- type: text
|
|
||||||
question_name: Please set an IPv4 Address
|
|
||||||
question_description: e.g. 192.168.1.1/24, it is OK to leave this blank if you are
|
|
||||||
using IPv6 only
|
|
||||||
variable: interface_ipv4
|
|
||||||
required: false
|
|
||||||
default: 192.168.1.1/24
|
|
||||||
- type: text
|
|
||||||
question_name: Please Set an IPv6 Address
|
|
||||||
question_description: e.g. fc00::2/64, it is OK to leave this blank if you are using
|
|
||||||
IPv4 only
|
|
||||||
variable: interface_ipv6
|
|
||||||
required: false
|
|
||||||
default: fc00::2/64
|
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
---
|
|
||||||
demos:
|
demos:
|
||||||
deploy_application:
|
deploy_application:
|
||||||
name: "Deploy Application (survey)"
|
name: "Deploy Application (survey)"
|
||||||
|
|||||||
@@ -1,32 +1,32 @@
|
|||||||
- name: add deploy application job template
|
- name: add job template without survey
|
||||||
tower_job_template:
|
tower_job_template:
|
||||||
name: "{{demos[demo].name}}"
|
name: "{{item.value.name}}"
|
||||||
job_type: "{{demos[demo].job_type}}"
|
job_type: "{{item.value.job_type}}"
|
||||||
inventory: "{{demos[demo].inventory}}"
|
inventory: "{{item.value.inventory}}"
|
||||||
project: "{{demos[demo].project}}"
|
project: "{{item.value.project}}"
|
||||||
playbook: "{{demos[demo].playbook}}"
|
playbook: "{{item.value.playbook}}"
|
||||||
credential: "{{demos[demo].credential}}"
|
credential: "{{item.value.credential}}"
|
||||||
survey_enabled: "{{demos[demo].survey_enabled}}"
|
survey_enabled: "{{item.value.survey_enabled}}"
|
||||||
tower_username: "{{my_tower_username}}"
|
tower_username: "{{my_tower_username}}"
|
||||||
tower_password: "{{my_tower_password}}"
|
tower_password: "{{my_tower_password}}"
|
||||||
tower_host: "{{my_tower_host}}"
|
tower_host: "{{my_tower_host}}"
|
||||||
validate_certs: no
|
validate_certs: no
|
||||||
when:
|
when:
|
||||||
- not demos[demo].survey_enabled
|
- not item.value.survey_enabled
|
||||||
|
|
||||||
- name: add deploy application job template
|
- name: add job template with survey
|
||||||
tower_job_template:
|
tower_job_template:
|
||||||
name: "{{demos[demo].name}}"
|
name: "{{item.value.name}}"
|
||||||
job_type: "{{demos[demo].job_type}}"
|
job_type: "{{item.value.job_type}}"
|
||||||
inventory: "{{demos[demo].inventory}}"
|
inventory: "{{item.value.inventory}}"
|
||||||
project: "{{demos[demo].project}}"
|
project: "{{item.value.project}}"
|
||||||
playbook: "{{demos[demo].playbook}}"
|
playbook: "{{item.value.playbook}}"
|
||||||
credential: "{{demos[demo].credential}}"
|
credential: "{{item.value.credential}}"
|
||||||
survey_enabled: "{{demos[demo].survey_enabled}}"
|
survey_enabled: "{{item.value.survey_enabled}}"
|
||||||
survey_spec: "{{demos[demo].survey_spec}}"
|
survey_spec: "{{item.value.survey_spec}}"
|
||||||
tower_username: "{{my_tower_username}}"
|
tower_username: "{{my_tower_username}}"
|
||||||
tower_password: "{{my_tower_password}}"
|
tower_password: "{{my_tower_password}}"
|
||||||
tower_host: "{{my_tower_host}}"
|
tower_host: "{{my_tower_host}}"
|
||||||
validate_certs: no
|
validate_certs: no
|
||||||
when:
|
when:
|
||||||
- demos[demo].survey_enabled
|
- item.value.survey_enabled
|
||||||
|
|||||||
@@ -11,12 +11,6 @@
|
|||||||
tower_host: "{{my_tower_host}}"
|
tower_host: "{{my_tower_host}}"
|
||||||
validate_certs: no
|
validate_certs: no
|
||||||
|
|
||||||
- name: install job template
|
- name: install all job templates
|
||||||
include: add_job_template.yml
|
include: add_job_template.yml
|
||||||
when: demo != "all"
|
loop: "{{ demos|dict2items }}"
|
||||||
|
|
||||||
- name: install job template
|
|
||||||
include: add_job_template.yml
|
|
||||||
when: demo == "all"
|
|
||||||
with_items:
|
|
||||||
- demos
|
|
||||||
|
|||||||
Reference in New Issue
Block a user