We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sympa_robots
If sympa_robots is not defined the role fails in the first task of the inclusion, which is not the intended behaviour. Acconding to ansible doc, when you add a conditional to an import statement, Ansible applies the condition to all tasks within the imported file. The first task of the included file is a loop on sympa_robots, which is not defined. The added when statement, even if false, doesn't prevent the loop to require a list. An include_tasks instead of an include_tasks would make it.
If sympa_robots is not defined the role fails in the first task of the inclusion, which is not the intended behaviour.
Acconding to ansible doc, when you add a conditional to an import statement, Ansible applies the condition to all tasks within the imported file.
The first task of the included file is a loop on sympa_robots, which is not defined. The added when statement, even if false, doesn't prevent the loop to require a list.
when
An include_tasks instead of an include_tasks would make it.
include_tasks
Originally posted by @ulvida in 80252d3
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Originally posted by @ulvida in 80252d3
The text was updated successfully, but these errors were encountered: