Ansible Special Characters In Passwords
I read my root passwords from an encrypted ansible-vault file. But when I use it on ansible_become_pass the operation fails because the password contains a special character. In m
Solution 1:
Use set +H
before actually running that encryption command.
Solution 2:
This might work.
become_pass:"{{ root_pass_sirius | regex_escape() }}"
Solution 3:
Solution 4:
Another thing that you can try is the quote filter:
become_pass:"{{ root_pass_sirius | quote }}"
Solution 5:
Try this "'"{{ }}"'"
or this $'{{ }}'
Its Jinja templates
Post a Comment for "Ansible Special Characters In Passwords"