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
# role tasks: test_role/tasks/main.yml
---
- shell: echo test flush handlers startnotify: test flush_handlers
- meta: flush_handlers
- shell: echo test flush handlers end
# role handler: test_role/handlers/main.yml
---
- name: test flush_handlersdebug: msg="should not run at the end"
ansible-playbook test.yml --tags test_role
Expected Results:
PLAY [localhost] **************************************************************
TASK: [test_role | shell echo test flush handlers start] **********************
changed: [localhost]
NOTIFIED: [test_role | test flush_handlers] ***********************************
ok: [localhost] => {
"msg": "should not run at the end"
}
TASK: [test_role | shell echo test flush handlers end] ************************
changed: [localhost]
PLAY RECAP ********************************************************************
localhost : ok=3 changed=2 unreachable=0 failed=0
Actual Results:
PLAY [localhost] **************************************************************
TASK: [test_role | shell echo test flush handlers start] **********************
changed: [localhost]
TASK: [test_role | shell echo test flush handlers end] ************************
changed: [localhost]
NOTIFIED: [test_role | test flush_handlers] ***********************************
ok: [localhost] => {
"msg": "should not run at the end"
}
PLAY RECAP ********************************************************************
localhost : ok=3 changed=2 unreachable=0 failed=0
The text was updated successfully, but these errors were encountered:
We believe the above commit should resolve this problem for you. This will also be included in the next 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.
Issue Type:
Bug Report
Ansible Version:
Environment:
Tested on ArchOS, Ubuntu 14.04 LTS
Summary:
- meta: flush_handlers
does not work in roles if role has a tag and--tags
is used. with that role tag.Steps To Reproduce:
Expected Results:
Actual Results:
The text was updated successfully, but these errors were encountered: