Hi, I am new to ansible.
I have installed ansible and am testing 2 debian servers (ping module) and it works fine
ansible all -m ping
server1 | SUCCESS => {
“changed”: false,
“ping”: “pong”
}
server2 | SUCCESS => {
“changed”: false,
“ping”: “pong”
}
I have a linux dvb box OpenPLi Enigma2 and I want to test ansible for this box.
My /etc/ansible/hosts
[servers]
server1 ansible_host=192.168.20.12 ansible_port=2288 ansible_user=abc
server2 ansible_host=192.168.20.13 ansible_port=2288 ansible_user=abc
[boxes]
domalunix ansible_host=10.8.0.161 ansible_user=root
When I ping the boxes, I get a response
ansible boxes -m ping
domalunix | FAILED! => {
“changed”: false,
“module_stderr”: “Shared connection to 10.8.0.161 closed.\r\n”,
“module_stdout”: “/bin/sh: /usr/bin/python3: No such file or directory\r\n”,
“msg”: “The module failed to execute correctly, you probably need to set the interpreter.\nSee stdout/stderr for the exact error”,
“rc”: 127
}
When I ping the dvb box without ansible, everything works. From the ansible server, I can log in to the ssh box using an ssh key (without a password).