-
-
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] tailscale up fails when changing non-default flags #455
Comments
This didn't happen because I use a node key without the |
This patch adds `--reset` to the default `tailscale up` arguments which reset all non-default arguments to their defaults. This behavior matches what is documented in the README: > Flags are not persisted between runs; you must specify all flags each time. Fixes artis3n#455.
Thanks for this issue and it's linked PR! I want to think about how best to account for this. Tailscale's default behavior is to fail instead of silently add |
I think one can argue for having different defaults for
This is what I initially did, but if one subscribes to the idea that the code should always override any existing state it doesn't hurt to always include
This is what I do now as a workaround. |
I think that's a persuasive reason to |
@McSim85 Moving your comment here, you are saying you are in favor of this role applying |
I'm sorry for not getting back to you sooner.
In most cases, Ansible inventory is automated. Inventory or role variables define server configuration. Ansible roles are expected to be idempotent. In case your environment expects to change cli params by admins manually, there is a way to pass - name: Servers
hosts: all
roles:
- role: artis3n.tailscale
vars:
tailscale_args: "--reset" I might be wrong, but the To sum up, I would not add |
Describe the bug
tailscale up
fails after changing default arguments, such as e.g.--operator
.To Reproduce
tailscale_args: "--operator={{ ansible_user_id }}"
successfullyNote that the builtin redacting of the auth key failed here. I redacted it myself for this issue.
Expected behavior
Screenshots
If applicable, add screenshots to help explain your problem.
Target (please complete the following information):
artis3n.tailscale
version: 4.4.4.verbose
to true): Ver: 1.62.0-tdf4d4ebd4-gd0454003cThe text was updated successfully, but these errors were encountered: