Skip to content

Conversation

@khartahk
Copy link

I've added some checks to fix the role to also run without issues in check mode.

@khartahk khartahk changed the title fix: add checks to allow the role to run in check mode [FIX] add some task checks so that role runs in check mode Mar 29, 2025
Copy link
Owner

@artis3n artis3n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this PR! I've been meaning to get check mode nominally supported. I'll start testing against this PR shortly. Do you believe these are the only changes needed?

when:
- tailscale_start is failed
- tailscale_start.stdout | length > 0
- not ansible_check_mode and tailscale_start.stdout | length > 0
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Each item in this list is an "and" statement on the when condition. Can you add a new item to the list instead of combining on this line?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants