pipeline { agent { label "ansible" } stages { stage('Execute playbook') { steps { ansiblePlaybook( playbook: 'main.yaml', inventory: 'hosts.ini', credentialsId: 'igor' ) } } } }