Ошибка получения ниже в выводе консоли Jenkins,
[Pipeline] ansiblePlaybook [pipeline -job] $ ansible-playbook my_playbook.yml -i inventories/a/hosts FATAL: command execution failed java.io.IOException: Process working directory '/var/lib/jenkins/workspace/pipeline -job' doesn't exist! at hudson.Proc$LocalProc.(Proc.java:248) at hudson.Proc$LocalProc.(Proc.java:219) at hudson.Launcher$LocalLauncher.launch(Launcher.java:937) at hudson.Launcher$ProcStarter.start(Launcher.java:455)
Мой конвейер Jenkins равен
pipeline {
agent any
stages {
stage('Build') {
steps {
ansiblePlaybook( credentialsId: 'private_key', inventory: 'inventories/a/hosts', playbook: 'my_playbook.yml')
}
}
}
}