-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
handlers not inheriting role parameters (become) #17490
Comments
This is a workaround to ansible/ansible#17490
Hi @basictheprogram, this appears to have been resolved by other inheritance-related fixes I've been working on recently. I can no longer replicate this in [jamesc@jimi 17490]$ cat test.yml - hosts: localhost gather_facts: no roles: - { name: test, become: yes } [jamesc@jimi 17490]$ cat roles/test/tasks/main.yml --- # tasks file for roles/test - debug: changed_when: true notify: the handler [jamesc@jimi 17490]$ cat roles/test/handlers/main.yml --- # handlers file for roles/test - name: the handler command: whoami [jamesc@jimi 17490]$ ansible-playbook --version ansible-playbook 2.2.0.0 (stable-2.2 debfb798dd) last updated 2016/11/11 08:10:00 (GMT -500) lib/ansible/modules/core: (detached HEAD 164225aa43) last updated 2016/11/11 10:31:30 (GMT -500) lib/ansible/modules/extras: (detached HEAD 18bb736cc2) last updated 2016/11/11 10:31:30 (GMT -500) config file = /etc/ansible/ansible.cfg configured module search path = ['/usr/share/ansible'] [jamesc@jimi 17490]$ ansible-playbook -vv test.yml Using /etc/ansible/ansible.cfg as config file PLAYBOOK: test.yml ************************************************************* 1 plays in test.yml PLAY [localhost] *************************************************************** TASK [test : debug] ************************************************************ task path: /home/jamesc/testing/17490/roles/test/tasks/main.yml:3 NOTIFIED HANDLER the handler ok: [localhost] => { "msg": "Hello world!" } RUNNING HANDLER [test : the handler] ******************************************* changed: [localhost] => {"changed": true, "cmd": ["whoami"], "delta": "0:00:00.002354", "end": "2016-11-11 10:31:46.044595", "rc": 0, "start": "2016-11-11 10:31:46.042241", "stderr": "", "stdout": "root", "stdout_lines": ["root"], "warnings": []} PLAY RECAP ********************************************************************* localhost : ok=2 changed=2 unreachable=0 failed=0 As such, we will go ahead and close this now. This will also be included in the 2.2.1.0 release. If you continue seeing any problems related to this issue, or if you have any further questions, please let us know by stopping by one of the two mailing lists, as appropriate:
Because this project is very active, we're unlikely to see comments made on closed tickets, but the mailing list is a great way to ask questions, or post if you don't think this particular issue is resolved. Thank you! |
This was workaround of ansible/ansible#17490 resolved in ver. 2.2.1.
This was workaround of ansible/ansible#17490 resolved in ver. 2.2.1.
This was workaround of ansible/ansible#17490 resolved in ver. 2.2.1.
Pulled cscfi.shibboleth-sp v1.0.6, fixed hanlder for ansible/ansible#17490 Replaced loop: with with_items: for 2.2.0.0 compatibility Explicitly add cmprescott.xml requirement. Rebased to master branch as of Mon Apr 1 19:40:10 UTC 2019
ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
SUMMARY
All my handlers that need to run as root are failing.
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
Additional details in Ansible Development Google Group
https://groups.google.com/forum/#!topic/ansible-devel/utV9nR-1P84
The text was updated successfully, but these errors were encountered: