Hi,
I use Ansible to manage my servers.
One of my hosts can’t be managed by Ansible, I get an error but he’s configured like some other servers :
Hosts file /etc/ansible/hosts :
[test]
ns1 ansible_ssh_port=2222
ns2 ansible_ssh_port=2222
Playbook sample :
- hosts: test
remote_user: admin
tasks:- name: Upgrade All
apt:
update_cache=yes
upgrade=full
sudo: yes
Ansible 1.8.3 under Debian 7, servers under Debian 7
ansible --version
ansible 1.8.3
configured module search path = None
Test ok :
ansible -m ping ns2
ns2 | success >> {
“changed”: false,
“ping”: “pong”
}
Playbook fails :