Skip to content

Commit

Permalink
The file/touch task always modifies the file, creating an empty file …
Browse files Browse the repository at this point in the history
…only results in a change when the file did not exist (#36)
  • Loading branch information
veger authored and ernestas-poskus committed Oct 29, 2016
1 parent 33decc1 commit b8465dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/conf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
notify: Restart marathon

- name: Set optional --checkpoint option
file: path=/etc/marathon/conf/?checkpoint state=touch
copy: content="" dest=/etc/marathon/conf/?checkpoint
when: checkpoint != ""
notify: Restart marathon

Expand Down

0 comments on commit b8465dd

Please sign in to comment.