Skip to content

Commit

Permalink
Only restart services once (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndench committed Mar 4, 2018
1 parent d7a2eed commit bc27485
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@

- name: Restart services
service:
name: "{{ environment_files[item.1].service }}"
name: "{{ item.service }}"
state: restarted
with_subelements:
with_items:
- "{{ environment_config }}"
- files
when: environment_files[item.1].service is defined
when: item.service is defined

0 comments on commit bc27485

Please sign in to comment.