sync content

This commit is contained in:
ipvsean
2020-02-25 19:16:52 -05:00
parent bdea0894aa
commit 3c5dba85a0
4 changed files with 21 additions and 53 deletions

View File

@@ -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

View File

@@ -1,4 +1,3 @@
---
demos:
deploy_application:
name: "Deploy Application (survey)"

View File

@@ -1,32 +1,32 @@
- name: add deploy application job template
- name: add job template without survey
tower_job_template:
name: "{{demos[demo].name}}"
job_type: "{{demos[demo].job_type}}"
inventory: "{{demos[demo].inventory}}"
project: "{{demos[demo].project}}"
playbook: "{{demos[demo].playbook}}"
credential: "{{demos[demo].credential}}"
survey_enabled: "{{demos[demo].survey_enabled}}"
name: "{{item.value.name}}"
job_type: "{{item.value.job_type}}"
inventory: "{{item.value.inventory}}"
project: "{{item.value.project}}"
playbook: "{{item.value.playbook}}"
credential: "{{item.value.credential}}"
survey_enabled: "{{item.value.survey_enabled}}"
tower_username: "{{my_tower_username}}"
tower_password: "{{my_tower_password}}"
tower_host: "{{my_tower_host}}"
validate_certs: no
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:
name: "{{demos[demo].name}}"
job_type: "{{demos[demo].job_type}}"
inventory: "{{demos[demo].inventory}}"
project: "{{demos[demo].project}}"
playbook: "{{demos[demo].playbook}}"
credential: "{{demos[demo].credential}}"
survey_enabled: "{{demos[demo].survey_enabled}}"
survey_spec: "{{demos[demo].survey_spec}}"
name: "{{item.value.name}}"
job_type: "{{item.value.job_type}}"
inventory: "{{item.value.inventory}}"
project: "{{item.value.project}}"
playbook: "{{item.value.playbook}}"
credential: "{{item.value.credential}}"
survey_enabled: "{{item.value.survey_enabled}}"
survey_spec: "{{item.value.survey_spec}}"
tower_username: "{{my_tower_username}}"
tower_password: "{{my_tower_password}}"
tower_host: "{{my_tower_host}}"
validate_certs: no
when:
- demos[demo].survey_enabled
- item.value.survey_enabled

View File

@@ -11,12 +11,6 @@
tower_host: "{{my_tower_host}}"
validate_certs: no
- name: install job template
- name: install all job templates
include: add_job_template.yml
when: demo != "all"
- name: install job template
include: add_job_template.yml
when: demo == "all"
with_items:
- demos
loop: "{{ demos|dict2items }}"