Tomishinets Vladimir 4 rokov pred
rodič
commit
58e892c71b
1 zmenil súbory, kde vykonal 3 pridanie a 11 odobranie
  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
-           """
-      }
 }