I am trying to use a dict in an Ansible task, which is defined like this:
in vars/main.yml
file:
username: user1
userpass: pass1
users:
"{{ username }}":
pass: "{{ userpass }}"
This doesn't work in Ansible 2.9: Ansible seems to not interpolate the value for "{{ username }}"
IIRC this worked fine around Ansible 2.5
What has changed? How should I rewrite my roles and playbooks now?
The play
gives:
Is this what you're looking for?