|
@@ -79,9 +79,9 @@ pipeline {
|
|
|
// Следующие 2 строчки после тестирования необходимо убрать, так как репозитории клонируются в предыдущем шаге
|
|
|
git_clone(PKI_GIT_URL)
|
|
|
git_clone(SWARM_GIT_URL)
|
|
|
- withCredentials([sshUserPrivateKey(credentialsId: 'ansible', keyFileVariable: 'GIT_SSH_KEY', passphraseVariable: '', usernameVariable: 'GIT_SSH_USERNAME')]) {
|
|
|
- sh "ssh -i ${GIT_SSH_KEY} ansible@pbx.sdsys.ru"
|
|
|
- }
|
|
|
+// withCredentials([sshUserPrivateKey(credentialsId: 'ansible', keyFileVariable: 'GIT_SSH_KEY', passphraseVariable: '', usernameVariable: 'GIT_SSH_USERNAME')]) {
|
|
|
+// sh "ssh -i ${GIT_SSH_KEY} ansible@pbx.sdsys.ru"
|
|
|
+// }
|
|
|
NEW_ENDDATE = sh (script: "openssl x509 -enddate -noout -in ${CONFIG_DIR}/live/${DOMAIN}/cert.pem", returnStdout: true).trim()
|
|
|
TARGET_HOSTS_APACHE.each { item ->
|
|
|
ENDDATE = sh (script: "echo|openssl s_client -servername ${item}.${DOMAIN} -connect ${item}.${DOMAIN}:443 2>/dev/null|openssl x509 -noout -enddate", returnStdout: true).trim()
|
|
@@ -148,6 +148,7 @@ def update_sertificate(String PLAYBOOK, String TARGET_DIR, String TARGET_HOST) {
|
|
|
ansiblePlaybook(
|
|
|
credentialsId: 'ansible',
|
|
|
playbook: PLAYBOOK,
|
|
|
+ hostKeyChecking: false,
|
|
|
extraVars: [
|
|
|
target_dir: TARGET_DIR,
|
|
|
TARGET_HOST: TARGET_HOST
|