ansible-lint reports The 'changed' test expects a dictionary
for facts set in different playbook file
#3155
Labels
The 'changed' test expects a dictionary
for facts set in different playbook file
#3155
Summary
ansible-lint reports failure with fact not being dictionary when the fact is set in some other file:
Issue Type
OS / ENVIRONMENT
STEPS TO REPRODUCE
Playbooks:
Then run lint command:
ansible-lint playbook.yaml
Which reports following failure:
(Some other failures are also reported due to the example being intentionally minimal here)
If the two tasks were in the same playbook, like bellow, ansible-lint does not report this failure:
Desired Behavior
In both scenarios, ansible-lint should not report failure with the fact not being dictionary.
Actual Behavior
When the debug task is in separate file, ansible-lint fails with:
The text was updated successfully, but these errors were encountered: