-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
[FEAT] Allow specifying the playbook state directory #471
Comments
Thanks for raising this @neilschelly |
Is this not resolved by setting |
@artis3n , yes, I believe you could do something like that. I guess I felt like that was a mis-use of the XDG_STATE_HOME variable, since it implies that value should be some user-specific location. Then, we'd have to ensure that every user who uses this in our organization uses it with the same XDG_STATE_HOME set, which I think we could handle. I do think there would be more to it though, because of permissions. If I chose a more global place, like |
This makes sense - the state folder could be globally readable, it just includes a sha256 hash of the Tailscale authkey so I wanted to restrict access unless necessary. Does overriding a And I agree now with the conceptual difference of allowing configuring |
How about something like this?
The other change would be that you'd need to use This would basically recreate the existing configuration, but allow someone to put the folder in a better shared location with other users able to access it for deployments too. |
Is your feature request related to a problem? Please describe.
We have multiple users who might run ansible configuration playbooks against a given system. Since the state for the playbook is stored in a user-specific state directory based on either
env.XDG_STATE_HOME
orenv.HOME
, that means that the current state isn't always found depending on who runs the ansible commands.Describe the solution you'd like
I think the best solution would be allowing a variable like
tailscale_state_directory
that could override the followingset_fact
declaration in the playbook. It would have to be a shared folder that allows multiple users to read/write it too.The text was updated successfully, but these errors were encountered: