Skip to content

Commit

Permalink
Fix error when upstart configuration file is missing (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
veger authored and ernestas-poskus committed Oct 24, 2016
1 parent 54d42ed commit 33decc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/conf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@
stat: path=/usr/lib/systemd/system/
register: systemd_check

- name: Upstart environment variables
lineinfile: dest=/etc/init/marathon.conf backup=yes state=present insertbefore='exec.*' line="env {{ item }}"
- name: Upstart environment variables
lineinfile: dest=/etc/init/marathon.conf backup=yes state=present create=true insertbefore='exec.*' line="env {{ item }}"
with_items: "{{ marathon_env_vars }}"
when: etc_init_check.stat.exists == true
notify: Restart marathon
Expand Down

0 comments on commit 33decc1

Please sign in to comment.