From 700c04d17d2ce33d11a3c6e464438ba06e7b8e29 Mon Sep 17 00:00:00 2001 From: Robert de Bock Date: Sun, 16 Jun 2019 03:51:59 +0200 Subject: [PATCH] Fix. --- .gitignore | 3 ++- molecule/resources/playbook.yml | 2 +- tasks/image.yml | 7 ++----- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 47cf7b9..feb7cec 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ molecule/*/.molecule *.log -*.swp \ No newline at end of file +*.swp +molecule/resources/out diff --git a/molecule/resources/playbook.yml b/molecule/resources/playbook.yml index a98bca0..99705ec 100644 --- a/molecule/resources/playbook.yml +++ b/molecule/resources/playbook.yml @@ -6,7 +6,7 @@ vars: y_import_from: /data/in - y_export_to: /data/out + y_export_to: out y_preset: monochrome roles: diff --git a/tasks/image.yml b/tasks/image.yml index 233c53d..0d42e1b 100644 --- a/tasks/image.yml +++ b/tasks/image.yml @@ -28,11 +28,8 @@ - name: ensure directory structure exists file: - path: "{{ item }}" + path: "{{ y_export_path }}" state: directory - with_items: - - "{{ y_export_path }}" - - "{{ y_export_to }}" - name: process images block: @@ -44,7 +41,7 @@ - name: copying processed image back fetch: src: "{{ y_export_path }}/{{ (image.path | basename | splitext)[0] }}.pgm" - dest: "{{ y_export_to }}" + dest: "{{ y_export_to }}/{{ (image.path | basename | splitext)[0] }}.pgm" flat: yes when: - y_convert_images | bool