Skip to content
This repository has been archived by the owner on Oct 29, 2018. It is now read-only.

Figure out how to get vars_prompt working with windows.sh #3

Closed
geerlingguy opened this issue Feb 7, 2014 · 2 comments
Closed

Figure out how to get vars_prompt working with windows.sh #3

geerlingguy opened this issue Feb 7, 2014 · 2 comments
Labels

Comments

@geerlingguy
Copy link
Owner

I just realized that vars_prompt (Ansible prompts) don't work at all with windows.sh, since it's not able to get control of the terminal through the SSH connection over Vagrant correctly. An error message always results:

/usr/lib64/python2.6/getpass.py:83: GetPassWarning: Can not control echo on the terminal.
  passwd = fallback_getpass(prompt, stream)
Warning: Password input may be echoed.
Enter network username:
Warning: Password input may be echoed.
Enter network password: Traceback (most recent call last):
  File "/usr/bin/ansible-playbook", line 269, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/usr/bin/ansible-playbook", line 209, in main
    pb.run()
  File "/usr/lib/python2.6/site-packages/ansible/playbook/__init__.py", line 229, in run
    play = Play(self, play_ds, play_basedir)
  File "/usr/lib/python2.6/site-packages/ansible/playbook/play.py", line 62, in __init__
    self.vars             = self._get_vars()
  File "/usr/lib/python2.6/site-packages/ansible/playbook/play.py", line 618, in _get_vars
    vname, private, prompt, encrypt, confirm, salt_size, salt, default
  File "/usr/lib/python2.6/site-packages/ansible/callbacks.py", line 653, in on_vars_prompt
    result = prompt(msg, private)
  File "/usr/lib/python2.6/site-packages/ansible/callbacks.py", line 641, in prompt
    return getpass.getpass(prompt)
  File "/usr/lib64/python2.6/getpass.py", line 83, in unix_getpass
    passwd = fallback_getpass(prompt, stream)
  File "/usr/lib64/python2.6/getpass.py", line 118, in fallback_getpass
    return _raw_input(prompt, stream)
  File "/usr/lib64/python2.6/getpass.py", line 135, in _raw_input
    raise EOFError
EOFError
@geerlingguy
Copy link
Owner Author

See: hashicorp/vagrant#2924

@geerlingguy
Copy link
Owner Author

See: hashicorp/vagrant#3396 (thus closing this)... vars_prompt won't be officially supported by Vagrant.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant