0

我尝试通过 Jenkins Job 使用同步 Ansible 模块,但我遇到了执行问题:

09:50:18  TASK [Synchronize directories] *************************************************

09:50:20  FATAL: command execution failed
09:50:20  hudson.AbortException: Ansible playbook execution failed
09:50:20    at org.jenkinsci.plugins.ansible.AnsiblePlaybookBuilder.perform(AnsiblePlaybookBuilder.java:262)
09:50:20    at org.jenkinsci.plugins.ansible.workflow.AnsiblePlaybookStep$AnsiblePlaybookExecution.run(AnsiblePlaybookStep.java:430)
09:50:20    at org.jenkinsci.plugins.ansible.workflow.AnsiblePlaybookStep$AnsiblePlaybookExecution.run(AnsiblePlaybookStep.java:351)
09:50:20    at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47)
09:50:20    at hudson.security.ACL.impersonate(ACL.java:367)
09:50:20    at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44)
09:50:20    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
09:50:20    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
09:50:20    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
09:50:20    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
09:50:20    at java.lang.Thread.run(Thread.java:748)

这是我关于此任务的 Ansible 剧本:

 - name: Synchronize directories
    synchronize:
      src: "roles/digit-servers/server/auth/data/"
      dest: "/data/dock/auth/data/"

您对这个错误的含义有任何想法吗?

4

0 回答 0