update ansible settings
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Morgan McMillian 2023-03-08 10:52:54 -08:00
parent 8effbf846c
commit ade7b437d2
2 changed files with 3 additions and 38 deletions

View file

@ -14,6 +14,9 @@ pipeline:
playbook: main.yaml
inventory: hosts.ini
syntax_check: true
user: igor
private_key:
from_secret: igor_key
notify:
image: plugins/matrix

38
Jenkinsfile vendored
View file

@ -1,38 +0,0 @@
pipeline {
agent { label 'fedora' }
stages {
stage('Build site') {
steps {
// mattermostSend "Site build started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
sh 'git submodule update --init'
sh 'hugo'
}
// post {
// success {
// mattermostSend color: "good", message: "Site build success - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
// }
// failure {
// mattermostSend color: "danger", message: "Site build failure - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
// }
// }
}
stage('Deploy site') {
steps {
// mattermostSend "Site deploy started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
ansiblePlaybook(
playbook: 'main.yaml',
inventory: 'hosts.ini',
credentialsId: 'igor'
)
}
// post {
// success {
// mattermostSend color: "good", message: "Site deploy success - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
// }
// failure {
// mattermostSend color: "danger", message: "Site deploy failure - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
// }
// }
}
}
}