Tomishinets Vladimir %!s(int64=4) %!d(string=hai) anos
pai
achega
4bce998695
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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'