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