This commit is contained in:
ipvsean
2020-02-24 17:35:02 -05:00
parent fdfe937462
commit 193aaabb93
3 changed files with 36 additions and 26 deletions

View File

@@ -1,10 +0,0 @@
---
- name: setup deploy_application.yml demo
hosts: localhost
gather_facts: false
become: yes
tasks:
- name: Conditional role
include_role:
name: "{{playbook_dir}}/../deploy_application"

View File

@@ -0,0 +1,11 @@
---
- name: setup deploy application demo
hosts: localhost
gather_facts: false
connection: local
tasks:
- name: install demo
include_role:
name: "../roles/deploy_application"

View File

@@ -1,10 +1,4 @@
---
- name: setup deploy_application.yml demo
hosts: localhost
gather_facts: false
become: yes
tasks:
- name: add tower project
tower_project:
name: "Ansible official demo project"
@@ -16,3 +10,18 @@
tower_password: "{{my_tower_password}}"
tower_host: "{{my_tower_host}}"
validate_certs: no
- name: add deploy application job template
tower_job_template:
name: "Deploy Application (survey)"
job_type: "run"
inventory: "Workshop Inventory"
project: "Ansible official demo project"
playbook: "roles/deploy_application/tasks/deploy_application.yml"
credential: "Demo Credential"
tower_username: "{{my_tower_username}}"
tower_password: "{{my_tower_password}}"
tower_host: "{{my_tower_host}}"
validate_certs: no
# survey_enabled: yes
# survey_spec: "{{ lookup('file', 'my_survey.json') }}"