Skip to content
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] Unexpected templating type error occurred #486

Open
GarrisonD opened this issue Jun 29, 2024 · 3 comments
Open

[BUG] Unexpected templating type error occurred #486

GarrisonD opened this issue Jun 29, 2024 · 3 comments
Labels
bug:needs-reproduction A reported bug that needs to be confirmed and reproduced.

Comments

@GarrisonD
Copy link

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):

  • OS: Ubuntu 24.04
  • Ansible version: 10.1.0
  • artis3n.tailscale version: v4.5.0
  • Tailscale version (set verbose to true): 1.68.1

Additional context

Could it be because of the Ansible 10?

@GarrisonD GarrisonD added the bug:needs-reproduction A reported bug that needs to be confirmed and reproduced. label Jun 29, 2024
@artis3n
Copy link
Owner

artis3n commented Jun 29, 2024

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

@artis3n artis3n added bug This bug is confirmed and can be reproduced. and removed bug:needs-reproduction A reported bug that needs to be confirmed and reproduced. labels Jun 29, 2024
@artis3n
Copy link
Owner

artis3n commented Jul 7, 2024

Hm I am not actually able to reproduce this with an expired tailscale key.
image

Since it is expired anyway, would you be comfortable sharing your authkey that triggered this error? Or otherwise describe a reproducible scenario?

@artis3n artis3n added bug:needs-reproduction A reported bug that needs to be confirmed and reproduced. and removed bug This bug is confirmed and can be reproduced. labels Jul 7, 2024
@artis3n
Copy link
Owner

artis3n commented Jul 7, 2024

This may be an Ansible 10 issue 🤔
Edit: well bumping my poetry environment to ansible 10 did not trigger an error, I got the same message as in my image (which is what should happen).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug:needs-reproduction A reported bug that needs to be confirmed and reproduced.
Projects
None yet
Development

No branches or pull requests

2 participants