After I'm stumbling over this problem and searching hours in similar problems, a final clarification would help me a lot.
I'm syncing my project and my inventory via SCM.
The directory structure looks like this starting from top level directory:
.
./playbook
./inventory
./inventory/host_vars
./inventory/group_vars
In playbook/ all my playbooks reside, in inventory all my inventory files are there and I configured in ansible.cfg to use as inventory file the whole inventory directory.
I followed the tips from here:
So all passwords for all my servers are vaulted. It's perfectly working on ansible CLI.
I also configured an ansible.cfg with the following relevant content:
vault_id_match = True
vault_identity_list = id1@/path/to/ansible-vault-secret.id1,id2@/path/to/ansible-vault-secret.id2
In these 2 files, my ansible vault password together with the id is stored.
This file is clearly not in SCM.
I configured in AWX 2 vault credentials with same id and password I'm using above.
I can't get any playbook to decrypt the corresponding vaulted string (it is the sudo password of the machines I'm targeting with ansible).
Can someone please enlighten me how to get this setup working on AWX?