generated from ansible-collections/collection_template
-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New warning about connection plugin #307
Labels
Comments
resolved_by_pr #297 |
felixfontein
added
bug
Something isn't working
docker-plain
plain Docker (no swarm, no compose, no stack)
labels
Mar 16, 2022
This also applies to the docker_api connection plugin. That's fixed in #308. |
This was referenced Mar 28, 2022
Merged
1 task
This was referenced Mar 28, 2022
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
SUMMARY
Using Ansible core devel branch, I see a warning:
This issues proposes to fix whatever this message is advising to fix.
ISSUE TYPE
COMPONENT NAME
plugins/connection/docker.py
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
defaults
OS / ENVIRONMENT
Fedora host machine, CentOS stream derived target containers.
STEPS TO REPRODUCE
My inventory looks like this:
No warnings are raised parsing the inventory.
Let's run a playbook that does work against those containers. I'm running https://github.com/AlanCoding/playbooks/blob/devel/image_distribute.yml
(ultimately, you'll get the same result with any
comand:
task, the problem appears to be in the hostvars as the connection plugin gets used)EXPECTED RESULTS
Works with no warnings
ACTUAL RESULTS
Works but has warnings
This warning comes from
https://github.com/ansible/ansible/blob/56edbd2bbb372a61dae2017923f1d8e33d1922d9/lib/ansible/playbook/play_context.py#L300-L305
Introduced in ansible/ansible#77005
The Ansible issue ansible/ansible#77001 gives a little bit more description of the problem. Mentioned in that issue:
It is true, this collection sets this option:
community.docker/plugins/connection/docker.py
Lines 35 to 41 in 4b235a2
The text was updated successfully, but these errors were encountered: