diff --git a/tasks/install-callas-pdf-engine.yml b/tasks/install-callas-pdf-engine.yml
index f7b5184da0e1b4056a1e8f37f3c9fe35e7ea8f5e..322953fb6b3a5145618e4f285f1e927de5420624 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