|
@@ -152,20 +152,12 @@ def update_sertificate(String PLAYBOOK, String TARGET_DIR, String TARGET_HOST, S
|
|
playbook: PLAYBOOK,
|
|
playbook: PLAYBOOK,
|
|
disableHostKeyChecking: true,
|
|
disableHostKeyChecking: true,
|
|
extraVars: [
|
|
extraVars: [
|
|
- target_dir: TARGET_DIR,
|
|
|
|
|
|
+ TARGET_DIR: TARGET_DIR,
|
|
TARGET_HOST: TARGET_HOST,
|
|
TARGET_HOST: TARGET_HOST,
|
|
- domain: DOMAIN
|
|
|
|
|
|
+ DOMAIN: DOMAIN
|
|
],
|
|
],
|
|
- extras: '-vvv',
|
|
|
|
|
|
+// extras: '-vvv',
|
|
colorized: true)
|
|
colorized: true)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-}
|
|
|
|
-def ap(String PLAYBOOK, String TARGET_DIR, String TARGET_HOST) {
|
|
|
|
- withCredentials([sshUserPrivateKey(credentialsId: 'ansible', keyFileVariable: 'GIT_SSH_KEY', passphraseVariable: '', usernameVariable: 'GIT_SSH_USERNAME')]) {
|
|
|
|
- sh """ansible-playbook ${PLAYBOOK} --private-key \
|
|
|
|
- ${GIT_SSH_KEY} -u ansible -e target_dir=${TARGET_DIR} \
|
|
|
|
- -e TARGET_HOST=${TARGET_HOST} --ssh-common-args='-o StrictHostKeyChecking=no' -vvv
|
|
|
|
- """
|
|
|
|
- }
|
|
|
|
}
|
|
}
|