pipeline {
agent any
options{ timestamps () }
environment {
book="/tmp/nas/test.yml"
hos="/tmp/nas/host"
}
stages {
stage('Deloy') {
steps {
ansiblePlaybook(
playbook: "${book}",
inventory: "${hos}",
credentialsId: 'vagrant'
)
}
}
}
}
ansiblePlaybook
最新推荐文章于 2022-08-04 16:52:14 发布