ansible / proposals

Repository for sharing and tracking progress on enhancement proposals for Ansible.
Creative Commons Zero v1.0 Universal
93 stars 19 forks source link

Allow user to break out of pause-prompt #139

Closed eric-b-hymowitz closed 6 years ago

eric-b-hymowitz commented 6 years ago

Proposal: Allow user to break out of pause-prompt

Author: Eric B. Hymowitz <@eric-b-hymowitz>

Date: 2018-08-07

Motivation

A pause potentially allows the user to wait for a specific event to occur before allowing ansible to continue. A pause configured with a specific time allows the user to abort a playbook. A pause with no specific time, waiting instead for user to hit return, should also allow the user to abort a playbook.

Problems

A pause potentially allows the user to wait for a specific event to occur before allowing ansible to continue. If the event does not happen, or some other troubleshooting is needed, the user cannot break out of the pause module. His only option is to hit RETURN and continue the playbook.

A pause that has a specific time attached will allow the user to hit Control-C and then A to abort the playbook. The untimed pause does not offer such an option; Control-C has no effect.

The untimed pause should allow the same option to break out of a playbook that the timed pause does.

Solution proposal

Activate the Control-C to allow a user to abort a playbook, rather than the current behavior of trapping the Control-C and ignoring it.

agaffney commented 6 years ago

This request is extremely limited in scope, which means that it should probably just be a standard feature request in ansible/ansible rather than a proposal.

eric-b-hymowitz commented 6 years ago

I’m not sure I understand what you’re saying.

I started at

https://docs.ansible.com/ansible/latest/community/reporting_bugs_and_features.html#requesting-a-feature

... and it says ...

The next best way of getting a feature into Ansible is to submit a proposal through the Ansible proposal processhttps://github.com/ansible/proposals.

What are you suggesting I do?

--EbH

sivel commented 6 years ago

Proposals are meant to be for discussions around large impacting changes to the way Ansible functions or will function. For small feature needs for existing functionality, please open a feature idea issue at https://github.com/ansible/ansible/issues/new?template=feature_request.md