Tomishinets Vladimir 4 tahun lalu
induk
melakukan
58e892c71b
1 mengubah file dengan 3 tambahan dan 11 penghapusan
  1. 3 11
      OFFICERenewalWildcardJenkinsfile

+ 3 - 11
OFFICERenewalWildcardJenkinsfile

@@ -152,20 +152,12 @@ def update_sertificate(String PLAYBOOK, String TARGET_DIR, String TARGET_HOST, S
             playbook: PLAYBOOK,
             disableHostKeyChecking: true,
             extraVars: [
-              target_dir: TARGET_DIR,
+              TARGET_DIR: TARGET_DIR,
               TARGET_HOST: TARGET_HOST,
-              domain: DOMAIN
+              DOMAIN: DOMAIN
             ],
-            extras: '-vvv',
+//            extras: '-vvv',
             colorized: true)
         }
       }
-}
-def ap(String PLAYBOOK, String TARGET_DIR, String TARGET_HOST) {
-      withCredentials([sshUserPrivateKey(credentialsId: 'ansible', keyFileVariable: 'GIT_SSH_KEY', passphraseVariable: '', usernameVariable: 'GIT_SSH_USERNAME')]) {
-        sh """ansible-playbook ${PLAYBOOK} --private-key \
-                ${GIT_SSH_KEY} -u ansible -e target_dir=${TARGET_DIR} \
-                -e TARGET_HOST=${TARGET_HOST} --ssh-common-args='-o StrictHostKeyChecking=no' -vvv
-           """
-      }
 }