diff --git a/CHANGELOG.md b/CHANGELOG.md index df7ea7f..1e45c76 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ and [human-readable changelog](https://keepachangelog.com/en/1.0.0/). ## master +## 0.0.3 + +### Fixed + +- Fixed file absent + ## 0.0.2 ### Added diff --git a/galaxy.yml b/galaxy.yml index e3c5517..dd067f3 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -1,7 +1,7 @@ --- namespace: 'sbaerlocher' name: 'windows' -version: 0.0.2 +version: 0.0.3 readme: README.md authors: - 'Simon Baerlocher (https://sbaerlocher.ch)' diff --git a/roles/files/tasks/url.yml b/roles/files/tasks/url.yml index bb004d5..22869e2 100644 --- a/roles/files/tasks/url.yml +++ b/roles/files/tasks/url.yml @@ -5,12 +5,12 @@ win_get_url: url: '{{ file.url }}' dest: '{{ file.path }}\\{{ file.name }}.{{ file.extension }}' - when: item.state | default("present") == "present" + when: file.state | default("present") == "present" - name: "Absent {{ file.path }}\\{{ file.name }}.{{ file.extension }}" win_file: path: "{{ file.path }}\\{{ file.name }}.{{ file.extension }}" state: absent when: - - ("state" in item.keys()) - - item.state == "absent" + - ("state" in file.keys()) + - file.state == "absent"