Skip to content

2.19.4 Fix - #55

Merged
Sispheor merged 6 commits into
HewlettPackard:devfrom
dougle:2.19.4-fix
Apr 20, 2026
Merged

Sispheor merged 6 commits into
HewlettPackard:devfrom
dougle:2.19.4-fix

Conversation

@dougle

@dougle dougle commented Apr 17, 2026 •

Copy link
Copy Markdown

I think i have Monkeyble working on at least 2.19.4.

The bulk of the PR is changing from Templar to using the underlying TemplateEngine, it seems that 2.19.4 make it impossible to pass a template string to Templar.template.

Strings just needed tagging as safe and template-able.

I have also changed v2_runner_on_start from modifying the Task to converting it to a MockedTask object and modifying that, this gets around a public/private attribute error but also might keep things cleaner in future (could move some mock_task_module functionality into the MockedTask class)

Fixes: #54

@Sispheor

Copy link
Copy Markdown
Contributor

Hello, thanks for the PR.
Looks good. But tests are not passing.
Also maybe we should loop the test to be executed on both before and after 2.19 version. I need to check how to do that on Github action side

@dougle

dougle commented Apr 17, 2026

Copy link
Copy Markdown
Author

My version of ansible package was too new 13.5.0 do we want to update or revert back to .lock version?

@dougle

dougle commented Apr 17, 2026

Copy link
Copy Markdown
Author

It's hard to see when running the tests locally what is failing and what is failing successfully.

@Sispheor

Copy link
Copy Markdown
Contributor

Once you're done you can squash your commits to remove non needed ones.
Thanks!

@Sispheor
Sispheor force-pushed the 2.19.4-fix branch 2 times, most recently from 4a062ee to 71a84c2 Compare April 20, 2026 09:39
Ensures the callback and utility functions work with older Ansible versions by making data tagging and MockedTask usage conditional on the Ansible version.
Adds an ansible-version matrix to the pull request workflow to ensure compatibility across different versions by explicitly pinning the package before running tests.
@Sispheor
Sispheor changed the base branch from master to dev April 20, 2026 13:16
@Sispheor
Sispheor merged commit b87fa63 into HewlettPackard:dev Apr 20, 2026
2 checks passed
@Sispheor

Copy link
Copy Markdown
Contributor

I've updated some part of your PR.
Now 2.19 should be fully covered 👍

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.

Ansible 2.19.4 breaks callback

2 participants