docker transporter sets ansible_os_family to hosts value instead of undefined. #951
Labels
docker-plain
plain Docker (no swarm, no compose, no stack)
not-a-bug
This is not a bug, but a problem with the user's environment, a wrong usage, or intended behavior
question
Further information is requested
SUMMARY
When dynamically adding a host to the inventory using community.docker.docker and ansible.builtin.add_host the value of ansible_os_family is inherited from the host instead of being set to undefined
ISSUE TYPE
COMPONENT NAME
community.docker.docker
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
ArchLinux
STEPS TO REPRODUCE
Spanw a debian container and store it's name in
container_name
.And the main.yml of some_role is:
Note: The setup module has not yet been ran in this case, the ssh transporter in these cases results in ansible_os_family being undefined.
EXPECTED RESULTS
Debug message of
ansible_os_family is set to "UNDEFINED"
ACTUAL RESULTS
ansible_os_family is set to Archlinux
The text was updated successfully, but these errors were encountered: