# Using "vars\_prompt" on MacOSX 10.9.5

**URL:** <https://forum.ansible.com/t/using-vars-prompt-on-macosx-10-9-5/18481>\
**Category:** Ansible Developer\
**Tags:** ubuntu\
**Created:** [June 11, 2015, 10:19pm UTC](https://forum.ansible.com/t/using-vars-prompt-on-macosx-10-9-5/18481 "2015-06-11T22:19:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adam\_Mills](https://avatars.discourse-cdn.com/v4/letter/a/9f8e36/32.png) [@Adam\_Mills](https://forum.ansible.com/u/Adam_Mills)\
**Post date:** [June 11, 2015, 10:19pm UTC](https://forum.ansible.com/t/using-vars-prompt-on-macosx-10-9-5/18481/1 "2015-06-11T22:19:47Z")

</div>

I have been using Ansible to manage hosts in my network for about a month and I have been trying use the “vars\_prompt” to gather usernames and password variables for later in the Playbook run. On Ubuntu and even Debian I get the results I am looking for but on Mac I get errors. Here is a super dumbed down play that works like a champ on Ubuntu, but fails on Mac:

`

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [June 12, 2015, 11:07am UTC](https://forum.ansible.com/t/using-vars-prompt-on-macosx-10-9-5/18481/2 "2015-06-12T11:07:27Z")

</div>

Do you have LANG and LC\_ALL set in your environment variables when you are running ansible:

Maybe you are hitting something similar to this problem?  
: [http://stackoverflow.com/questions/1830394/python-locale-strange-error-whats-going-on-here-exactly](http://stackoverflow.com/questions/1830394/python-locale-strange-error-whats-going-on-here-exactly)

---

<div class="post-metadata">

**Author:** ![Adam\_Mills](https://avatars.discourse-cdn.com/v4/letter/a/9f8e36/32.png) [@Adam\_Mills](https://forum.ansible.com/u/Adam_Mills)\
**Post date:** [June 12, 2015, 6:15pm UTC](https://forum.ansible.com/t/using-vars-prompt-on-macosx-10-9-5/18481/3 "2015-06-12T18:15:12Z")

</div>

Thanks for the quick response, this fixed my issue.

`  
export LC\_CTYPE=“UTF-8”

`

I also made an error on my Playbook and am posting the corrected one:

`
