K
прокатило
Size: a a a
K
K
K
ММ
K
А
M
СМ
K
fatal: [server1]: FAILED! => {"msg": "Missing sudo password"}
что вполне понятно.--ask-vault-pass - результат такой жеK
K
ansible all -m authorized_key -a "user=user key='{{ lookup('file', '/home/user/.ssh/id_rsa.pub') }}' path=/home/user/.ssh/authorized_keys manage_dir=no" --ask-pass -i xfg.inventory
получаю ошибку"msg": "Using a SSH password instead of a key is not possible because Host Key checking is enabled and sshpass does not support this. Please add this host's fingerprint to your known_hosts file to manage this host."
смысл понятен, но в мане не нашёл/просмотрел ключ, с которым фингерпринт к себе добавлятьK
[xfg-stand]
server1 ansible_ssh_host=192.168.57.101 ansible_ssh_user=user
server2 ansible_ssh_host=192.168.57.102 ansible_ssh_user=userCR
SA
SA
ММ
ММ
СМ
K