ich kürzlich ansibleansible sieht nicht Gastgeber (nicht erreichbar)
[email protected]:~$ ansible --version
ansible 2.3.1.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]
Ich habe hinzugefügt installiert haben zwei Zeilen in: /etc/ansible/hosts
[local]
192.168.1.102
und geändert uncommented 1 Zeile in ansible.cfg:
# uncomment this to disable SSH key host checking
host_key_checking = False
noch, wenn ich tun:
ansible all -m ping
192.168.1.102 | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: Warning: Permanently added '192.168.1.102' (ECDSA) to the list of known hosts.\r\nPermission denied (publickey,password).\r\n",
"unreachable": true
}
1) Warum mein localhost
2) nicht erreichbar ist, warum dieses Programm so klug ist, dass es über ssh zu verbinden versucht, auch wenn diese Option deaktiviert wurde.