Fact gathering when ansible run inside docker container

78 views
Skip to first unread message

menon...@gmail.com

unread,
Aug 4, 2016, 11:45:33 AM8/4/16
to Ansible Project
I have a docker container from inside which I'm running ansible.
When I gather facts for the container (ansible -m setup localhost) , i see that the network related (ansible_default_ipv4) facts are not gathered.
Is there an explaination for this? Execution from outside the container is as expected

Brian Coca

unread,
Aug 8, 2016, 4:20:56 PM8/8/16
to ansible...@googlegroups.com
Those facts are gathered using standard tools for the OS detected, some of the containers are stripped/do not ship with these tools.


----------
Brian Coca
Reply all
Reply to author
Forward
0 new messages