|
@@ -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'
|