Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy. Avoid writing scripts or custom code to deploy and update your applications— automate in a language that approaches plain English, using SSH, with no agents to install on remote systems.
Getting below error while executing ansible playbook in latest ansible module 2.3.2.0
root@ubuntu:/home/ashish# ansible-playbook test.yaml --extra-vars "user=regress passwd=MaRtInI"
PLAY [Gather user information] *****************************************************************************************************************************************
TASK [Gather user information] *****************************************************************************************************************************************
fatal: [10.102.186.24]: FAILED! => {"changed": false, "failed": true, "msg": "unable to open shell. Please see: https://docs.ansible.com/ansible/network_debug_troubleshooting.html#unable-to-open-shell", "rc": 255}
to retry, use: --limit @/home/ashish/test.retry
PLAY RECAP *************************************************************************************************************************************************************
10.102.186.24 : ok=0 changed=0 unreachable=0 failed=1
ansible playbook :
name: Gather user information
hosts: all
connection: local
gather_facts: no
vars:
credentials:
username: "{{ user }}"
password: "{{ passwd }}"
host: "{{ inventory_hostname }}"
port: 22
tasks:
name: Gather user information
junos_command:
commands:
- show system users
provider: "{{ credentials }}"
register: result