# Parsing Password.

**URL:** <https://forum.ansible.com/t/parsing-password/46628>\
**Category:** Get Help\
**Created:** [November 9, 2026, 10:09am UTC](https://forum.ansible.com/t/parsing-password/46628 "2026-11-09T10:09:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramesh\_raman](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ramesh_raman/32/11521_2.png) [@ramesh\_raman](https://forum.ansible.com/u/ramesh_raman)\
**Post date:** [November 9, 2026, 10:09am UTC](https://forum.ansible.com/t/parsing-password/46628/1 "2026-11-09T10:09:42Z")

</div>

unable to parse password. if there is number/int followed “#”  
eg.  
test.ini  
10.10.10.10 ansible\_user=admin ansible\_password=‘0#d1234’

## test.yml

- name: Print password from inventory  
hosts: all  
gather\_facts: false

output:  
TASK [Show ansible\_password] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [10.10.10.10] =\> {  
“msg”: “Password = 0”

---

<div class="post-metadata">

**Author:** ![bcoca](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/bcoca/32/9269_2.png) [@bcoca](https://forum.ansible.com/u/bcoca)\
**Post date:** [November 9, 2026, 12:54pm UTC](https://forum.ansible.com/t/parsing-password/46628/2 "2026-11-09T12:54:47Z")

</div>

This is a limitation of the ini format, `#` is considered a comment and you cannot really override that, use YAML instead, also I recommend using a vault for the password.
