Skip to content

Commit

Permalink
feat: ensure file exists only changes when file is created
Browse files Browse the repository at this point in the history
Merge branch 'patch-1' of https://github.com/Uelb/ansible-environment into develop

closes #3
  • Loading branch information
franklinkim committed Feb 7, 2017
2 parents f12afd2 + 83c056d commit 41cbbbc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
owner: "{{ environment_file_owner }}"
group: "{{ environment_file_group }}"
state: touch
register: touch_log
changed_when: touch_log.diff.before.state != "file"

- name: Remove previous values
lineinfile:
Expand Down

0 comments on commit 41cbbbc

Please sign in to comment.