https://github.com/ppmathis/ansible-plugin-issue
Example repository for demonstrating an issue with loading Jinja plugins in ansible-core v2.15.5rc1
https://github.com/ppmathis/ansible-plugin-issue
Last synced: 18 days ago
JSON representation
Example repository for demonstrating an issue with loading Jinja plugins in ansible-core v2.15.5rc1
- Host: GitHub
- URL: https://github.com/ppmathis/ansible-plugin-issue
- Owner: ppmathis
- Created: 2023-10-04T14:21:44.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-04T14:26:06.000Z (over 2 years ago)
- Last Synced: 2025-01-15T16:27:18.976Z (over 1 year ago)
- Language: Python
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ansible Plugin Issue
This example repository demonstrates an issue with `ansible-core==2.15.5rc1`, which broke proper loading of filter plugins within roles if they happen to have the same name. This worked perfectly fine in earlier versions. For convenience, a Dockerfile has been added as well to quickly replicate this within an isolated environment.
To replicate the issue with `v2.15.5rc1`, run: `docker build --build-arg ANSIBLE_CORE_VERSION=2.15.5rc1 -t tmp . && docker run -it --rm tmp`
To verify the previously working version `v2.15.4`, run: `docker build --build-arg ANSIBLE_CORE_VERSION=2.15.4 -t tmp . && docker run -it --rm tmp`
A workaround is to ensure that each filter plugin has an individual name, e.g. instead of going for `custom.py` twice, rename them as `custom1.py` and `custom2.py`.