From b8465dd92a641e84aa407aaee745423260eae7ae Mon Sep 17 00:00:00 2001 From: Maarten Bezemer Date: Sat, 29 Oct 2016 09:48:55 +0200 Subject: [PATCH] The file/touch task always modifies the file, creating an empty file only results in a change when the file did not exist (#36) --- tasks/conf.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/conf.yml b/tasks/conf.yml index 798f675..7ec3b2a 100644 --- a/tasks/conf.yml +++ b/tasks/conf.yml @@ -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