From 91cb3c4be4ede4c8a446fb2120206a2d041c06cb Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Wed, 28 Feb 2018 18:03:58 +0100 Subject: [PATCH] Improve collect_config such that even parallel processes are possible and won't fail --- tasks/collect_config/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tasks/collect_config/main.yml b/tasks/collect_config/main.yml index 1544864..c58fc08 100644 --- a/tasks/collect_config/main.yml +++ b/tasks/collect_config/main.yml @@ -24,6 +24,14 @@ - name: "Move exported config to working copy" command: 'mv {{ pathExport }} {{ pathWorking }}' + # Note: If parallel processes are running the pathExport could be gone by now. + failed_when: false + ignore_errors: true + + - name: "Ensure working directory" + file: + path: '{{ pathWorking }}' + state: 'directory' - name: "Read file name in working copy" shell: 'ls {{ pathWorking }} -1' -- GitLab