Hi,
On reading the docs my assumption has been that using ansible_connection
= ‘network_cli’, tells ansible to run ssh to target and run commands.
In my case it is not happening.
$ cat /etc/issue
Ubuntu 20.04.4 LTS \n \l
$ ansible --version
ansible 2.9.6
config file = /etc/ansible/ansible.cfg
configured module search path = [‘/home/dushyant/.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.8.10 (default, Nov 14 2022, 12:59:47) [GCC 9.4.0]
$ ansible-galaxy collection install dellemc.os10 # Install dellemc roles
I setup my test dir as follows.
$ tree .
.
___ datacenter.yaml
___ host_vars
___ ___ R1.yaml
___ inventory.yaml
1 directory, 3 files
$ cat datacenter.yaml