I can't figure out the proper way to get Ansible vars_prompt to add double quotes around the password to ensure numbers and special characters are escaped. Below is an example of what I am talking about.
I have tried a number of combinations with no success. Basically when a password is entered I want Ansible to add double quotes around the password that helps ensure if the user has special characters it won't cause problems with Ansible or the ldap/database it connects to.
vars_prompt:
- name: my_password
prompt: Enter password
--password="{{ my_password }}"