In Ansible AWX I created a Vault-credential (named: user-pw). Now I want to use that password in a playbook. But it doesn't work.
I created a template, add the Vault-credential (at the credential input). In the playbook I used the variable "{{ user-pw }}" at the place where the password should be.
What am I doing wrong? How do I get the AWX Vault password in the playbook as a variable?
This is the vault credential screen:
And this is the template screen:
And this is the test playbook:
---
- name: Vaulttest
hosts: win
tasks:
- name: View user pw
debug:
msg: "{{ user-pw }}"
Thanks in advance!