瀏覽代碼

missprint

Tomishinets Vladimir 4 年之前
父節點
當前提交
4bce998695
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      OFFICERenewalWildcardJenkinsfile

+ 1 - 1
OFFICERenewalWildcardJenkinsfile

@@ -161,7 +161,7 @@ def update_sertificate(String PLAYBOOK, String TARGET_DIR, String TARGET_HOST, S
 }
 def update_zimbra(String PLAYBOOK, String TARGET_DIR, String TARGET_HOST, String DOMAIN) {
       withCredentials([sshUserPrivateKey(credentialsId: 'ansible', keyFileVariable: 'GIT_SSH_KEY', passphraseVariable: '', usernameVariable: 'GIT_SSH_USERNAME')]) {
-        sh """ansible-playbook ${PLAYBOOK} \
+        sh """ansible-playbook --private-key ${GIT_SSH_KEY} ${PLAYBOOK} \
                 -u ansible -e TARGET_DIR=${TARGET_DIR} \
                 -e TARGET_HOST=${TARGET_HOST} -e DOMAIN=${DOMAIN} \
                 --ssh-common-args='-o StrictHostKeyChecking=no'