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
Control node OS: Fedora 23
Destination node OS: CentOS 7
Summary:
A role I wrote and maintain has a notify for a get_url task.
This notifies a handler which includes a playbook.
When a change for the get_url task triggers the handler, the following is returned:
Unexpected Exception: _do_handler_run() takes at least 5 arguments (5 given)
the full traceback was:
Traceback (most recent call last):
File "/usr/bin/ansible-playbook", line 84, in <module>
sys.exit(cli.run())
File "/usr/lib/python2.7/site-packages/ansible/cli/playbook.py", line 149, in run
results = pbex.run()
File "/usr/lib/python2.7/site-packages/ansible/executor/playbook_executor.py", line 149, in run
result = self._tqm.run(play=play)
File "/usr/lib/python2.7/site-packages/ansible/executor/task_queue_manager.py", line 249, in run
play_return = strategy.run(iterator, play_context)
File "/usr/lib/python2.7/site-packages/ansible/plugins/strategy/linear.py", line 205, in run
self._execute_meta(task, play_context, iterator)
File "/usr/lib/python2.7/site-packages/ansible/plugins/strategy/__init__.py", line 641, in _execute_meta
self.run_handlers(iterator, play_context)
File "/usr/lib/python2.7/site-packages/ansible/plugins/strategy/__init__.py", line 528, in run_handlers
result = self._do_handler_run(handler, handler_name, iterator=iterator, play_context=play_context)
File "/usr/lib/python2.7/site-packages/ansible/plugins/strategy/__init__.py", line 592, in _do_handler_run
notified_hosts=included_file._hosts[:],
TypeError: _do_handler_run() takes at least 5 arguments (5 given)
Also fixes a bug where we were passing an incorrect number of parameters to
_do_handler_run() when processing an include file in a handler task/block.
Fixes#13560
We believe the above commit should resolve this problem for you. This will also be included in the next major 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:
v2.0.0-0.7.rc2
Ansible Configuration:
ansible.cfg
Environment:
Control node OS: Fedora 23
Destination node OS: CentOS 7
Summary:
A role I wrote and maintain has a
notify
for aget_url
task.This notifies a handler which includes a playbook.
When a change for the
get_url
task triggers the handler, the following is returned:Steps To Reproduce:
The
get_url
task with thenotify
The handler
The playbook included by the handler
The
- meta: flush_handlers
task does not affect this in any way. The same happens with or without it, or regardless of its position in the playbook.Expected Results:
The handler should run, include the playbook, and execute the tasks within said playbook.
Thanks
Thanks in advance for any help on this! Please do let me know if there's any further information I can provide that would aid investigation. 👍
The text was updated successfully, but these errors were encountered: