update vars

This commit is contained in:
willtome
2022-03-15 10:45:03 -04:00
parent 34ab661cdd
commit bf03e418e1
3 changed files with 9 additions and 5 deletions

View File

@@ -4,8 +4,7 @@
gather_facts: no gather_facts: no
vars: vars:
infra_provider: undef infra_provider: undef
aws_public_key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCK93BIfZx+MeEyP6qBha48FxtoZYsmx4grYOM3ZQMbkDp0v/cHFKHlUrZR67bVHuOriqrCScBaBfZ0RQk7mYpTAR5CgLed8Vun3LcQz7bZHq26CS83J8KE5Kbfhm07VzZfOND/yeuq3dU9P6Kb2HBufj+mUGgktUjuLVlRAk1KTYfTAevYcCfm75LtCKAkTsR5hG+yGHRo0n1lWeEhz8m0Gl1g0e3/eGo/bmViHvrKi5cGPu7K8p8JGhtXhpr0jMIqh5Ej7Iu2fPe/sV05Qp+am4upGPW7PmS2V82sMuZxLPeWZRJxvqstW7aSziUxbWu6b8gMfRJdzGa6b24ejp1R 2cfb-key aws_public_key: undef
tasks: tasks:
- include_role: - include_role:
name: "demo.cloud.{{ infra_provider }}" name: "demo.cloud.{{ infra_provider }}"

View File

@@ -15,7 +15,7 @@
- name: "Check Provider Compatibility" - name: "Check Provider Compatibility"
assert: assert:
that: "{{ vm_provider }} in {{ vm_blueprint_providers }}" that: "'{{ vm_provider }}' in {{ vm_blueprint_providers }}"
fail_msg: "{{ vm_blueprint | upper }} is not available for {{ vm_provider | upper }}" fail_msg: "{{ vm_blueprint | upper }} is not available for {{ vm_provider | upper }}"
when: "vm_blueprint_providers is defined" when: "vm_blueprint_providers is defined"

View File

@@ -40,10 +40,15 @@ controller_templates:
name: '' name: ''
description: '' description: ''
spec: spec:
- question_name: Infra Provider
type: multiplechoice
variable: infra_provider
required: true
choices:
- aws
- question_name: Public Key - question_name: Public Key
type: textarea type: textarea
variable: aws_public_key variable: aws_public_key
required: true
- name: Cloud / Create VM - name: Cloud / Create VM
job_type: run job_type: run
organization: Default organization: Default
@@ -79,4 +84,4 @@ controller_templates:
type: multiplechoice type: multiplechoice
variable: vm_blueprint variable: vm_blueprint
required: true required: true
choices: "{{ lookup('fileglob', 'blueprints/*.yml') | regex_replace(',','\n') | regex_findall('.*/(.*)(?=.yml)') }}" choices: "{{ lookup('fileglob', 'blueprints/*.yml') | regex_replace(',','\n') | regex_findall('.*/(.*)(?=.yml)') | list }}"