Re: [ansible-devel] Make an SSH connection and run a command from within the playbook

2022-01-27 Thread drago...@gmail.com
Brian, thanks for the info. As you mention, I found the netcommon collection (https://docs.ansible.com/ansible/latest/collections/ansible/netcommon/index.html) I understand the idea, but I don't understand how to use the connection plugin.

Re: [ansible-devel] Make an SSH connection and run a command from within the playbook

2022-01-27 Thread Brian Coca
The cliconf/network_cli plugins do this, they handle the connection internally in the module and use ssh/paramiko/libssh to interact with the target -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To

[ansible-devel] Make an SSH connection and run a command from within the playbook

2022-01-27 Thread drago...@gmail.com
I'm working on an automation to create/delete users on storage devices. I have been only provided with the commands that the storage admin use and users that can ssh to the storage devices. My first attempt was to create a normal playbook that connects to the storage device and run the