figured out better way using credential in 2.9 duh

This commit is contained in:
David Rojas
2020-09-26 14:55:13 -07:00
parent fe8fc4e121
commit 78918ac670
3 changed files with 3 additions and 7 deletions

View File

@@ -14,9 +14,7 @@
tower_password: "{{ my_tower_password }}"
tower_host: "{{ my_tower_host }}"
- name: setting the new azure cred to cloud cred var
set_fact:
my_cloud_cred: azure_credential

View File

@@ -42,9 +42,7 @@
project: "{{ vars[demo].project.name }}"
playbook: "{{ vars[demo].playbook }}"
fact_caching_enabled: "{{ vars[demo].fact_caching_enabled | default('false') }}"
credential: "{{ my_cloud_cred | default(omit) }}"
# use for regular playbooks "{{ vars[demo].credential }}"
credential: "{{ vars[demo].credential }}"
survey_enabled: "{{ vars[demo].survey_enabled }}"
survey_spec: "{{ vars[demo].survey_spec }}"
tower_username: "{{ my_tower_username }}"

View File

@@ -8,7 +8,7 @@ azure_provision_vm:
job_type: "run"
inventory: "Workshop Inventory"
playbook: "playbooks/infrastructure/azure_provision_vm.yml"
credential: "Workshop Credential"
credential: "azure_credential"
survey_enabled: true
survey_spec:
name: Azure Provision VM