Skip to content

Commit

Permalink
Version 0.0.3
Browse files Browse the repository at this point in the history
fix file absent
  • Loading branch information
sbaerlocher authored May 4, 2020
2 parents 7a6c5fe + e31099c commit c0dda14
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
@@ -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)'
Expand Down
6 changes: 3 additions & 3 deletions roles/files/tasks/url.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit c0dda14

Please sign in to comment.