Skip to content
New issue

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

Undefined sympa_robots makes the role fail #7

Open
ulvida opened this issue Nov 13, 2024 · 0 comments
Open

Undefined sympa_robots makes the role fail #7

ulvida opened this issue Nov 13, 2024 · 0 comments

Comments

@ulvida
Copy link

ulvida commented Nov 13, 2024

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.

Originally posted by @ulvida in 80252d3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant