Когда я вызывал Ansible через Jenkins, я добавил нижеприведенный скрипт в свою Playbook
- name: HELLO WORLD PLAY
hosts: webserver
become: yes
become_method: sudo
tasks:
- debug:
msg: "HELLO......."
- shell: echo "HELLO WORLD"
Я получаю ошибку ниже, когда создаю задание
TASK [setup] *******************************************************************
fatal: [10.142.0.13]: UNREACHABLE! =>
{
"changed": false,
"msg": "ERROR! SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue",
"unreachable": true
}
при запуске этой пьесычерез CLI он работает успешно, но я не могу запустить через Jenkins, поскольку (я уже выполнил настройку, вставив закрытый ключ в Jenkins)