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
ansible-playbook -i "localhost," -c local -vvv include-test-dynamic-static.yml
TASK [include] *****************************************************************
task path: /Volumes/Users/int/Development/Ansible/ansible-include/include-test-dynamic-static.yml:5
ERROR! Unexpected Exception: 'NoneType' object has no attribute 'get_vars'
the full traceback was:
Traceback (most recent call last):
File "/Volumes/Users/int/Development/Ansible/ansible/bin/ansible-playbook", line 86, in <module>
sys.exit(cli.run())
File "/Volumes/Users/int/Development/Ansible/ansible/lib/ansible/cli/playbook.py", line 151, in run
results = pbex.run()
File "/Volumes/Users/int/Development/Ansible/ansible/lib/ansible/executor/playbook_executor.py", line 141, in run
result = self._tqm.run(play=play)
File "/Volumes/Users/int/Development/Ansible/ansible/lib/ansible/executor/task_queue_manager.py", line 246, in run
play_return = strategy.run(iterator, play_context)
File "/Volumes/Users/int/Development/Ansible/ansible/lib/ansible/plugins/strategy/linear.py", line 305, in run
new_blocks = self._load_included_file(included_file, iterator=iterator)
File "/Volumes/Users/int/Development/Ansible/ansible/lib/ansible/plugins/strategy/__init__.py", line 463, in _load_included_file
loader=self._loader
File "/Volumes/Users/int/Development/Ansible/ansible/lib/ansible/playbook/helpers.py", line 58, in load_list_of_blocks
loader=loader
File "/Volumes/Users/int/Development/Ansible/ansible/lib/ansible/playbook/block.py", line 81, in load
return b.load_data(data, variable_manager=variable_manager, loader=loader)
File "/Volumes/Users/int/Development/Ansible/ansible/lib/ansible/playbook/base.py", line 200, in load_data
self._attributes[name] = method(name, ds[name])
File "/Volumes/Users/int/Development/Ansible/ansible/lib/ansible/playbook/block.py", line 117, in _load_block
use_handlers=self._use_handlers,
File "/Volumes/Users/int/Development/Ansible/ansible/lib/ansible/playbook/helpers.py", line 108, in load_list_of_tasks
all_vars = variable_manager.get_vars(loader=loader, play=play, task=t)
AttributeError: 'NoneType' object has no attribute 'get_vars'
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
ANSIBLE VERSION
CONFIGURATION
N/A
OS / ENVIRONMENT
N/A
SUMMARY
Exception on include after a non-static one
STEPS TO REPRODUCE
include-test-dynamic-static.yml
include-test_include-localhost-static.yml
include-test_print-localhost.yml
EXPECTED RESULTS
ACTUAL RESULTS
ansible-playbook -i "localhost," -c local -vvv include-test-dynamic-static.yml
The text was updated successfully, but these errors were encountered: