2022-11-19 23:06:15 +00:00
|
|
|
pipeline {
|
2022-11-20 01:34:15 +00:00
|
|
|
agent { label "ansible" }
|
2022-11-20 01:16:38 +00:00
|
|
|
stages {
|
|
|
|
stage('Execute playbook') {
|
|
|
|
steps {
|
|
|
|
ansiblePlaybook(
|
|
|
|
playbook: 'main.yaml',
|
2022-11-20 01:42:19 +00:00
|
|
|
inventory: 'inventory.yaml',
|
2023-03-05 18:27:18 +00:00
|
|
|
credentialsId: 'igor'
|
2022-11-20 01:16:38 +00:00
|
|
|
)
|
|
|
|
}
|
2022-11-20 00:53:55 +00:00
|
|
|
}
|
2022-11-19 23:06:15 +00:00
|
|
|
}
|
|
|
|
}
|