Skip to content

ansible: fix filter plugin and Jinja templates for Ansible >=12#4369

Open
targos wants to merge 2 commits into
nodejs:mainfrom
targos:fix-ansible
Open

ansible: fix filter plugin and Jinja templates for Ansible >=12#4369
targos wants to merge 2 commits into
nodejs:mainfrom
targos:fix-ansible

Conversation

@targos

@targos targos commented Jun 13, 2026

Copy link
Copy Markdown
Member

Closes: #4157

@targos

targos commented Jun 13, 2026

Copy link
Copy Markdown
Member Author

Note that I have "tested" it by starting a playbook and observing that the error is not there anymore. I am not certain that the behavior is identical.

@targos

targos commented Jun 13, 2026

Copy link
Copy Markdown
Member Author

Tested more with #4368. It doesn't work: [ERROR]: Task failed: Module failed: No package(s) matching '[]' available

@targos targos marked this pull request as draft June 13, 2026 12:00
@targos

targos commented Jun 13, 2026

Copy link
Copy Markdown
Member Author

I added some debug logs and it seems the change works as expected. Maybe there's another breaking change in Ansible.

@targos

targos commented Jun 13, 2026

Copy link
Copy Markdown
Member Author

I think it's https://docs.ansible.com/projects/ansible/latest/porting_guides/porting_guide_core_2.19.html#id22

I added another commit to use a list literal instead of a string.

@targos targos marked this pull request as ready for review June 13, 2026 12:25
@targos targos changed the title ansible: fix filter plugin for Ansible >=12 ansible: fix filter plugin and Jinja templates for Ansible >=12 Jun 13, 2026
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.

Playbook not compatible with Ansible 12

1 participant