{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/14749","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/14749/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/14749/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/14749/events","html_url":"https://github.com/ansible/ansible/issues/14749","id":137860634,"number":14749,"title":"Ansible pause module fails to abort ","user":{"login":"binbashroot","id":17021542,"avatar_url":"https://avatars.githubusercontent.com/u/17021542?v=3","gravatar_id":"","url":"https://api.github.com/users/binbashroot","html_url":"https://github.com/binbashroot","followers_url":"https://api.github.com/users/binbashroot/followers","following_url":"https://api.github.com/users/binbashroot/following{/other_user}","gists_url":"https://api.github.com/users/binbashroot/gists{/gist_id}","starred_url":"https://api.github.com/users/binbashroot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binbashroot/subscriptions","organizations_url":"https://api.github.com/users/binbashroot/orgs","repos_url":"https://api.github.com/users/binbashroot/repos","events_url":"https://api.github.com/users/binbashroot/events{/privacy}","received_events_url":"https://api.github.com/users/binbashroot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible/labels/needs_info","name":"needs_info","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-02T12:23:25Z","updated_at":"2016-03-02T14:23:33Z","closed_at":null,"body":"##### Issue Type:\r\n\r\n<!--- Please pick one and delete the rest: -->\r\n - Bug Report\r\n##### Ansible Version:\r\n\r\n```\r\nansible 2.0.1.0\r\n\r\n```\r\n\r\n##### Ansible Configuration:\r\n\r\n<!---\r\nPlease mention any settings you have changed/added/removed in ansible.cfg\r\n(or using the ANSIBLE_* environment variables).\r\n-->\r\n\r\n##### Environment:\r\n\r\n<!---\r\nAnsible Host:  RHEL6\r\nAnsible Clients:  RHEL 5/6\r\n-->\r\n\r\n##### Summary:\r\n\r\nAnsible pause module fails to abort when more than one host is defined is defined in the inventory file\r\nBug first reported in Ansible 2.0.0.1  bug number 14252 which was closed but appears to still exist in latest stable (2.0.1.0)\r\n\r\n##### Steps To Reproduce:\r\n\r\ninventoryfile:\r\n[alpha]\r\npiansiapst01 ansible_connection=local\r\ndgitapp01\r\nalexandria\r\n\r\n\r\n```\r\nplaybook:\r\n---\r\n- hosts: alpha\r\n  gather_facts: True\r\n  become: True\r\n  tasks:\r\n    - name: foo test\r\n      pause: prompt=\"Proving that ctrl-c-a doesn't work\"\r\n\r\n    - debug:  msg=\"See what I mean\"\r\n\r\n```\r\n\r\n<!--- You can also paste gist.github.com links for larger files -->\r\n\r\n##### Expected Results:\r\n\r\nExpected the play to abort altogether.\r\n\r\n##### Actual Results:\r\n1st host aborts but remaining hosts continue with tasks\r\n\r\n\r\n```\r\n[root@piansiapst01 ansible]# ansible-playbook -i testLinux testpause.yaml -k -u foouser\r\nSSH password:\r\n\r\nPLAY ***************************************************************************\r\n\r\nTASK [setup] *******************************************************************\r\nok: [piansiapst01]\r\nok: [alexandria]\r\nok: [dgitapp01]\r\n\r\nTASK [foo test] ****************************************************************\r\n[foo test]\r\nProving that ctrl-c-a doesn't work:\r\nPress 'C' to continue the play or 'A' to abort\r\nfatal: [piansiapst01]: FAILED! => {\"failed\": true, \"msg\": \"user requested abort!\"}\r\n\r\nTASK [debug] *******************************************************************\r\nok: [dgitapp01] => {\r\n    \"msg\": \"See what I mean\"\r\n}\r\nok: [alexandria] => {\r\n    \"msg\": \"See what I mean\"\r\n}\r\n\r\nNO MORE HOSTS LEFT *************************************************************\r\n\r\nPLAY RECAP *********************************************************************\r\nalexandria                 : ok=2    changed=0    unreachable=0    failed=0\r\ndgitapp01                  : ok=2    changed=0    unreachable=0    failed=0\r\npiansiapst01               : ok=1    changed=0    unreachable=0    failed=1\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/191256760","html_url":"https://github.com/ansible/ansible/issues/14749#issuecomment-191256760","issue_url":"https://api.github.com/repos/ansible/ansible/issues/14749","id":191256760,"user":{"login":"bcoca","id":836171,"avatar_url":"https://avatars.githubusercontent.com/u/836171?v=3","gravatar_id":"","url":"https://api.github.com/users/bcoca","html_url":"https://github.com/bcoca","followers_url":"https://api.github.com/users/bcoca/followers","following_url":"https://api.github.com/users/bcoca/following{/other_user}","gists_url":"https://api.github.com/users/bcoca/gists{/gist_id}","starred_url":"https://api.github.com/users/bcoca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcoca/subscriptions","organizations_url":"https://api.github.com/users/bcoca/orgs","repos_url":"https://api.github.com/users/bcoca/repos","events_url":"https://api.github.com/users/bcoca/events{/privacy}","received_events_url":"https://api.github.com/users/bcoca/received_events","type":"User","site_admin":false},"created_at":"2016-03-02T14:23:33Z","updated_at":"2016-03-02T14:23:33Z","body":"the behavior you describe was present in 2.0 but does not seem to be in 2.0.1, my guess is that you have old files that are being picked up instead of the new ones."}}