The way of the Jedi👨💻
The way of the Jedi👨💻
Vladimir
ох и сложен Путь джедая будет :)
The way of the Jedi👨💻
Ну подключения не я делал...
The way of the Jedi👨💻
Timur
The way of the Jedi👨💻
Поменять на ключи?
Timur
Смотрите, что не так с подключением. Кстати, инвентарь у вас откуда берется?
The way of the Jedi👨💻
Сейчас с password
Роман
Вот всегда так... прийдут на делают подключений, а потом мучайся.
Vladimir
@tgadiev так он вроде вообще не может ?
The way of the Jedi👨💻
The way of the Jedi👨💻
https://pastebin.com/kne61c5Q
Роман
Сейчас с password
Натрави на него пинг, модулем из командной строки, можно ещё вешками усилить эффект.
Vladimir
-v еще и выхлоп как от ssh полный так и от ansible
Timur
The way of the Jedi👨💻
Пингы с ансибл host а идут, но через ad-hoc команд не идут
The way of the Jedi👨💻
The way of the Jedi👨💻
Роман
The way of the Jedi👨💻
ansible p -m ping
The way of the Jedi👨💻
С модулем
Ф
Попробуйте в команде указать юзера и пароль
Farnsford
-u $USER -kK
The way of the Jedi👨💻
Не
The way of the Jedi👨💻
10roompi.Medassist.loc | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: ssh: connect to host 10.14.117.59 port 22: No route to host",
"unreachable": true
}
The way of the Jedi👨💻
23roompi.Medassist.loc | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: ssh: connect to host 10.14.117.33 port 22: No route to host",
"unreachable": true
}
The way of the Jedi👨💻
ansible p -m ping -u $user -kK
The way of the Jedi👨💻
root@ansible:/home/iteam/Ansible# ping 10roompi.Medassist.loc
PING 10roompi.Medassist.loc (10.14.117.59) 56(84) bytes of data.
64 bytes from 10.14.117.59 (10.14.117.59): icmp_seq=1 ttl=63 time=1.68 ms
64 bytes from 10.14.117.59 (10.14.117.59): icmp_seq=2 ttl=63 time=1.68 ms
The way of the Jedi👨💻
root@ansible:/home/iteam/Ansible# ping 23roompi.Medassist.loc
PING 23roompi.Medassist.loc (10.14.12.83) 56(84) bytes of data.
64 bytes from 10.14.12.83 (10.14.12.83): icmp_seq=1 ttl=63 time=11.9 ms
Ф
Почитайте issue, которую я скинул, попробуйте разные решения оттуда, мб какое-то из них поможет
Lamobot
The way of the Jedi👨💻
Lamobot
Проверьте инвентарь, может там заданы ip другие
The way of the Jedi👨💻
The way of the Jedi👨💻
Они с dns работают
The way of the Jedi👨💻
[p]
10roompi.Medassist.loc
23roompi.Medassist.loc
Lamobot
nslookup ?
The way of the Jedi👨💻
Если пинг идет)
The way of the Jedi👨💻
По DNS
Farnsford
-vvvvv
Farnsford
для дебага, там много полезного бывает
The way of the Jedi👨💻
Farnsford
ansible-playbook -vvv ...
The way of the Jedi👨💻
ping p -m ping -vvvvvv
The way of the Jedi👨💻
The way of the Jedi👨💻
The way of the Jedi👨💻
Он по дефолту юзает 22
The way of the Jedi👨💻
The way of the Jedi👨💻
Не сработало, не понял
Farnsford
The way of the Jedi👨💻
вручную заходить на целевые хосты и изменить их?
dslimp
The way of the Jedi👨💻
А, окей
The way of the Jedi👨💻
Че за, а щас вообще не подключается
The way of the Jedi👨💻
Все, заббикс тоже его не видет-_-
Nyamzas
Что я делаю не так?
'''
- name: Установка системного пользователя
replace:
dest: "/etc/systemd/system/{{ item }}.service"
regexp: "{SYSTEM_USER}"
replace: "{{ system_user[0].login }}"
loop:
- external_connect
- internal_connect
- sender
- run_adapters
- sender
- run_adapters
- run_folder_adapters
'''
Lamobot
Nyamzas
то что в loop, чтобы подставлялось в строку, где {{ item }}
Роман
Nyamzas