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
When using a defined variable which uses an undefined variable in an with_items statement, I get a deprecation warning rather than an actual error message.
An error message pointing me towards the variable that's missing or the very least which file produced the error.
Actual Results:
ansible-playbook playbook.yml
PLAY ***************************************************************************
TASK [debug] *******************************************************************
[DEPRECATION WARNING]: Skipping task due to undefined attribute, in the future this will be a fatal error.. This feature will be removed in a future release. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
PLAY RECAP *********************************************************************
localhost : ok=0 changed=0 unreachable=0 failed=0
The text was updated successfully, but these errors were encountered:
hagbarddenstore
changed the title
Deprecation error when using with_items
Deprecation warning when using with_items
Feb 17, 2016
hagbarddenstore
changed the title
Deprecation warning when using with_items
Deprecation warning when using with_items with undefined variable
Feb 17, 2016
Issue Type:
Bug Report
Ansible Version:
Ansible Configuration:
No changes.
Environment:
Mac OS X 10.11.3
Summary:
When using a defined variable which uses an undefined variable in an with_items statement, I get a deprecation warning rather than an actual error message.
Steps To Reproduce:
The following playbook.yml:
Run:
Expected Results:
An error message pointing me towards the variable that's missing or the very least which file produced the error.
Actual Results:
The text was updated successfully, but these errors were encountered: