I was having an issue in my Ansible template where I wanted to create an HTTP basic auth credential out of two different variables a user inputs into the play.
The first thing I tried to do was:
basic_auth: "{{ user + ':' + pass | b64encode }}"
However I ended up with:
basic_auth: "user:<BASE64_ENCODED>"
How can I have Jinja concatenate these strings and then pass it through my filter?