fields:
- id: username
type: string
label: Username
- id: password
type: string
label: Password
secret: true
required:
- username
- password
extra_vars:
KV_PASSWORD: '{{ password }}'
KV_USERNAME: '{{ username }}'
Create Project with Github Repo and load it into AWX
---
- hosts: linux.domain.local
tasks:
- name: debug vars
debug:
msg: "key1: {{ key1 }} --- value1: {{ value1 }}"
...
---
key1: "{{ KV_USERNAME }}"
value1: "{{ KV_PASSWORD }}"
Output example:
Enter passphrase for /runner/artifacts/228/ssh_key_data:
Identity added: /runner/artifacts/228/ssh_key_data (xxxxx)
PLAY [linux.domain.local] **************************************************
TASK [Gathering Facts] *********************************************************
ok: [linux.domain.local]
TASK [debug vars] **************************************************************
ok: [linux.domain.local] => {
"msg": "key1: myuser -- value1: mypass"
}
PLAY RECAP *********************************************************************
linux.domain.local : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0