2022-12-14 23:31:02 +00:00
|
|
|
pipeline {
|
|
|
|
agent { label "ansible" }
|
|
|
|
stages {
|
|
|
|
stage('Execute playbook') {
|
|
|
|
steps {
|
|
|
|
ansiblePlaybook(
|
|
|
|
playbook: 'main.yaml',
|
2023-03-05 18:29:11 +00:00
|
|
|
inventory: 'hosts.ini',
|
|
|
|
credentialsId: 'igor'
|
2022-12-14 23:31:02 +00:00
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|