Browse Source

missprint

Tomishinets Vladimir 4 years ago
parent
commit
4bce998695
1 changed files with 1 additions and 1 deletions
  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'