From 1e41112a79726a8c7cd1a6844ac95d8bd59ae69e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rg=20Sachse?= <Joerg.Sachse@slub-dresden.de>
Date: Tue, 30 Mar 2021 18:24:08 +0200
Subject: [PATCH] refactor: streamline directory creation for callas PDFEngine
 SDK

---
 tasks/install-callas-pdf-engine.yml | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)

diff --git a/tasks/install-callas-pdf-engine.yml b/tasks/install-callas-pdf-engine.yml
index f7b5184..322953f 100644
--- a/tasks/install-callas-pdf-engine.yml
+++ b/tasks/install-callas-pdf-engine.yml
@@ -1,20 +1,17 @@
 ---
-- name: create /usr/lib/cgi-bin/
+- name: remove old version of callas PDFEngine
   file:
-    path: "/usr/lib/cgi-bin/"
-    state: directory
-    mode: "0755"
+    path: "/usr/local/lib/callas_pdfEngine_SDK_x64"
+    state: absent
 
-- name: remove old version of callas PDFEngine
+- name: create directories for CGI-BIN and callas PDFEngine
   file:
     path: "{{ item }}"
-    state: absent
+    state: directory
+    mode: "0755"
   loop:
+    - "/usr/lib/cgi-bin/"
     - "/usr/local/lib/callas_pdfEngine_SDK_x64"
-- name: create new dest directory for callas PDFEngine
-  file:
-    path: "/usr/local/lib/callas_pdfEngine_SDK_x64"
-    state: directory
 
 # get latest version of callas PDFEngine at
 # http://www.callassoftware.com/extranet/callas_pdfEngineSDK/callas_pdfEngineSDK_x64_Linux.tar.gz
-- 
GitLab