Categories
Mastering Development System & Network

Ansible SSH connection closed

I have a little problem with ansible. I’m running it in a container: ansible 2.7.7 config file = /etc/ansible/ansible.cfg configured module search path = [‘/root/.ansible/plugins/modules’, ‘/usr/share/ansible/plugins/modules’] ansible python module location = /usr/lib/python3/dist-packages/ansible executable location = /usr/bin/ansible python version = 3.7.3 (default, Dec 20 2019, 18:57:59) [GCC 8.3.0] I want to create an artefact in one […]

Categories
Development Linux

Does Ansible check vars files when using -m?

I created a file, ./group_vars/all which has a simple line — ansible_user: centos However, when I use ansible -m ping I see that it’s trying to connect with my regular user. ~/cp/ansible$ ansible -vvv centos -m ping ansible 2.7.7 config file = /etc/ansible/ansible.cfg configured module search path = [‘/home/ecarroll/.ansible/plugins/modules’, ‘/usr/share/ansible/plugins/modules’] ansible python module location = […]