Tomishinets Vladimir 5 年之前
父节点
当前提交
42f14e2211
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      OFFICERenewalWildcardJenkinsfile

+ 3 - 1
OFFICERenewalWildcardJenkinsfile

@@ -148,11 +148,13 @@ def update_sertificate(String PLAYBOOK, String TARGET_DIR, String TARGET_HOST) {
           ansiblePlaybook(
             credentialsId: 'ansible',
             playbook: PLAYBOOK,
-            hostKeyChecking: 'false',
             extraVars: [
               target_dir: TARGET_DIR,
               TARGET_HOST: TARGET_HOST
             ],
+            extras: [
+              ansible_ssh_extra_args='-o StrictHostKeyChecking=no'
+            ],
             colorized: true)
         }
       }