Skip to content

Conversation

@swalkinshaw
Copy link
Member

The previous solution relied on matching against ANSI control codes which was brittle. This broke (again) on Ansible 2.20 because color codes are now displayed which breaks this intersect substring match expression.

The simpler solution is to just check for the Ansible CHANGED output which means the raw command and connection succeeded.

The previous solution relied on matching against ANSI control codes
which was brittle. This broke (again) on Ansible 2.20 because color
codes are now displayed which breaks this `intersect` substring match
expression.

The simpler solution is to just check for the Ansible `CHANGED` output
which means the raw command and connection succeeded.
@swalkinshaw swalkinshaw merged commit fe21a35 into master Jan 16, 2026
2 of 3 checks passed
@swalkinshaw swalkinshaw deleted the improve-ansible-connection-conditional branch January 16, 2026 13:25
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.

1 participant