You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
changed_when: "'Logged out.' not in tailscale_status.stdout and 'not logged in' not in tailscale_status.stdout"
when:
# [Errno 2] No such file or directory: 'tailscale'
- tailscale_status.rc != 2
# "bash: tailscale: command not found"
- tailscale_status.rc != 127
The tailscale status exits with exit code 1 and then tailscale logout exit code 1:
root@host:~# tailscale status
# Health check:
# - not logged in, last login error=invalid key: API key kX1yFH7CNTRL not valid
unexpected state: NoState
root@host:~# echo $?
1
root@host:~# tailscale logout
500 Internal Server Error: invalid key: API key kX1yFH7CNTRL not valid
root@host:~# echo $?
1
Expected behavior
Do not fail in such scenarios.
Additional context
PR is coming. :)
The text was updated successfully, but these errors were encountered:
Why shouldn't these tasks fail, @McSim85 ? If we are unable to perform a tailscale logout (or tailscale status) then we cannot ensure that the infrastructure has been decommissioned from Tailscale
Describe the bug
Running the role with
Might fail with the error:
That happens because during execution these tasks:
ansible-role-tailscale/tasks/uninstall.yml
Lines 2 to 18 in dd09d2f
The
tailscale status
exits with exit code 1 and thentailscale logout
exit code 1:Expected behavior
Do not fail in such scenarios.
Additional context
PR is coming. :)
The text was updated successfully, but these errors were encountered: