artis3n / ansible-role-tailscale

Ansible role to install and configure a Tailscale node.
https://galaxy.ansible.com/artis3n/tailscale
MIT License
352 stars 55 forks source link

[BUG] Unexpected templating type error occurred #486

Open GarrisonD opened 5 days ago

GarrisonD commented 5 days ago

Describe the bug My Tailscale auth key expired and tailscale up command failed but I couldn't understand why because of:

TASK [artis3n.tailscale : Install | Report redacted failure from "tailscale up"] *******************************************************
fatal: [raspberrypi.local]: FAILED! => {"msg": "Unexpected templating type error occurred on ({{ tailscale_start.stderr | default () | regex_replace(tailscale_authkey, 'REDACTED') | regex_replace('\\\\t', '') | split('\n') }}): first argument must be string or compiled pattern. first argument must be string or compiled pattern"}

Expected behavior STDERR displayed with auth key redacted.

Target (please complete the following information):

Additional context

Could it be because of the Ansible 10?

artis3n commented 5 days ago

I bet I need to add more default() variants in there with all the piping to regex_replace's that we have on that line