Skip to content

Commit

Permalink
Add --reset to default tailscale up arguments
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
fredrikekre committed Mar 26, 2024
1 parent 7ebbe49 commit 088fee0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@

- name: Install | Build the final tailscale_args
ansible.builtin.set_fact:
tailscale_args_string: "{{ tailscale_args }} {{ tailscale_tags_string | trim }} --timeout={{ tailscale_up_timeout | trim }}s"
tailscale_args_string: "--reset {{ tailscale_args }} {{ tailscale_tags_string | trim }} --timeout={{ tailscale_up_timeout | trim }}s"

- name: Install | Final `tailscale up` arguments string
ansible.builtin.debug:
Expand Down

0 comments on commit 088fee0

Please sign in to comment.