You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running a playbook that uses async tasks (like setup_pg_standby.yml any key presses aren't passed through to the ansible process.
For example when waiting for a task to complete the user is prompted:
TASK [pause] *******************************************************************
Pausing for 300 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
Pressing ctrl+C at this point will terminate the process completely:
Traceback (most recent call last):
File "/home/skelly/.virtualenvs/ansible/bin/cchq", line 11, in <module>
load_entry_point('commcare-cloud', 'console_scripts', 'cchq')()
File "/home/skelly/commcare-cloud/src/commcare_cloud/commcare_cloud.py", line 158, in main
exit_code = commands[args.command].run(args, unknown_args)
File "/home/skelly/commcare-cloud/src/commcare_cloud/commands/ansible/ansible_playbook.py", line 128, in run
return run_action_with_check_mode(run_check, run_apply, args.skip_check, args.quiet, always_skip_check)
File "/home/skelly/commcare-cloud/src/commcare_cloud/commands/ansible/helpers.py", line 117, in run_action_with_check_mode
exit_code = run_apply()
File "/home/skelly/commcare-cloud/src/commcare_cloud/commands/ansible/ansible_playbook.py", line 126, in run_apply
return ansible_playbook(environment, args.playbook, *unknown_args)
File "/home/skelly/commcare-cloud/src/commcare_cloud/commands/ansible/ansible_playbook.py", line 117, in ansible_playbook
p.communicate(input='{}\n'.format(environment.get_ansible_vault_password()))
File "/usr/lib/python2.7/subprocess.py", line 796, in communicate
self.wait()
File "/usr/lib/python2.7/subprocess.py", line 1376, in wait
pid, sts = _eintr_retry_call(os.waitpid, self.pid, 0)
File "/usr/lib/python2.7/subprocess.py", line 476, in _eintr_retry_call
return func(*args)
KeyboardInterrupt
[ERROR]: User interrupted execution
The text was updated successfully, but these errors were encountered:
When running a playbook that uses async tasks (like setup_pg_standby.yml any key presses aren't passed through to the ansible process.
For example when waiting for a task to complete the user is prompted:
Pressing
ctrl+C
at this point will terminate the process completely:The text was updated successfully, but these errors were encountered: