-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
[BUG] state
variable can easily collide with other variables
#470
Comments
Addendum... as a workaround for anyone running into this exact issue, you can add something like the following to your aws_ec2 inventory file(s):
This will ensure all host variables set by the aws_ec2 inventory module will get prefixed with |
I've been meaning a breaking change rewrite that would include changing |
I'm a fan of the
In other words, you have to check Once the |
Oh good point. I think I'd instead want to do, if both are defined, to |
Describe the bug
I am getting a collision on the
state
variable that is defaulted to latest in this cookbook. Specifically, I use the aws_ec2 module for Ansible inventory. This will set a state on every host it discovers representing the instance state.To Reproduce
Steps to reproduce the behavior:
Expected behavior
The value for
state
should be latest, present, or absent. But if the instance was discovered by the aws_ec2 module, state will be something like:Target (please complete the following information):
artis3n.tailscale
version: 4.5.0verbose
to true): N/AAdditional context
Add any other context about the problem here.
I'm guessing the fix will be to rename the
state
variable to something liketailscale_state
so that it's less likely at least to conflict with other playbooks or modules.The text was updated successfully, but these errors were encountered: