Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

Commit

Permalink
Fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdebock committed Jun 16, 2019
1 parent 4b8f700 commit 700c04d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
molecule/*/.molecule
*.log
*.swp
*.swp
molecule/resources/out
2 changes: 1 addition & 1 deletion molecule/resources/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

vars:
y_import_from: /data/in
y_export_to: /data/out
y_export_to: out
y_preset: monochrome

roles:
Expand Down
7 changes: 2 additions & 5 deletions tasks/image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 700c04d

Please sign in to comment.