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

Wrong scope in "Restrict your usage of variable types" #83

Open
CarstenGrohmann opened this issue Jan 6, 2023 · 0 comments
Open

Wrong scope in "Restrict your usage of variable types" #83

CarstenGrohmann opened this issue Jan 6, 2023 · 0 comments

Comments

@CarstenGrohmann
Copy link

Hi,

I'm not sure, but I think the scope is wrong. It should be "play" and not "role".

. scoped vars, at the block or task level, are local to their scope and hence internal to the role, and can't collide with other variable types.

Accordingly to the current documentation, Ansible knowns 3 scopes global, play and local. If we create a new variable at block or task level, the variable has the scope of the current play.

Regards,
Carsten

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