-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to see prompt text #149
Comments
Hi @its-johnt |
Hi @its-johnt ! Regarding the issue with the prompt message not showing up, I haven't come to a conclusion yet. However, I've noticed that using - name: Test playbook for user input
hosts: localhost
gather_facts: false
vars_prompt:
- name: input_this
prompt: Type in anything
private: true
- name: input_that
prompt: Type in another thing
private: true
tasks:
- name: echo user input this
debug:
msg: "You typed this: '{{ input_this }}'"
- name: echo user input that
debug:
msg: "You typed that: '{{ input_that }}'" When executed, the prompt message appears as expected. ❯ go run ansibleplaybook-simple-with-prompt.go
Type in anything:
Type in another thing:
PLAY [Test playbook for user input] ********************************************
TASK [echo user input this] ****************************************************
ok: [127.0.0.1] =>
msg: 'You typed this: ''asdf'''
TASK [echo user input that] ****************************************************
ok: [127.0.0.1] =>
msg: 'You typed that: ''asdf'''
PLAY RECAP *********************************************************************
127.0.0.1 : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Additionally, setting the Do you think this helps you move forward with fixing the issue? Thank you! |
Hi, thanks for taking a look. Unfortunately |
Hi @its-johnt! |
Hi, thanks for your very helpful library. I'm running into an issue where
pause
tasks with aprompt
won't show the prompt text on stdout unless the user knows there's an invisible prompt, enters something, then hits enter. For instance, theexamples/ansibleplaybook-simple-with-prompt
example from the repo on my Ubuntu 24.04 system shows:It stops there, but if you know it's a prompt you can enter the text and hit enter.
If there's any other info I can provide to help, please let me know.
The text was updated successfully, but these errors were encountered: