This commit is contained in:
ipvsean
2020-02-25 10:21:26 -05:00
parent fea4d61a04
commit 544d6fde86
2 changed files with 18 additions and 20 deletions

View File

@@ -4,10 +4,11 @@ demos:
job_type: "run"
inventory: "Workshop Inventory"
project: "Ansible official demo project"
playbook: "01_deploy_application.yml"
playbook: "playbooks/01_deploy_application.yml"
credential: "Demo Credential"
survey_enabled: yes
survey_spec: "{{ lookup('file', 'my_survey.json') }}"
survey_enabled: no
survey_spec: "none=none"
# survey_spec: "{{ lookup('file', 'my_survey.json') }}"
workshop_type:
- f5
- rhel

View File

@@ -11,20 +11,17 @@
tower_host: "{{my_tower_host}}"
validate_certs: no
- name: print out values
debug:
msg: "{{demos["demo"].name}}"
# - name: add deploy application job template
# tower_job_template:
# name: "{{demos["demo"].name}}"
# job_type: "{{job_type}}"
# inventory: "{{inventory}}"
# project: "{{project}}"
# playbook: "{{playbook}}"
# credential: "{{credential}}"
# survey_enabled: "{{survey_enabled}}"
# survey_spec: "{{survey_spec}}"
# tower_username: "{{my_tower_username}}"
# tower_password: "{{my_tower_password}}"
# tower_host: "{{my_tower_host}}"
# validate_certs: no
- name: add deploy application job template
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}}"
tower_username: "{{my_tower_username}}"
tower_password: "{{my_tower_password}}"
tower_host: "{{my_tower_host}}"
validate_certs: no