Skip to content

Commit

Permalink
Add default value for monit_services_present, specially useful when r…
Browse files Browse the repository at this point in the history
…unning the role on check_mode
  • Loading branch information
jordiclariana authored and pgolm committed Jun 6, 2018
1 parent 4038342 commit bb2aa38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/monitors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@
file:
path: "{{ monit_includes }}/{{ item }}"
state: absent
with_items: "{{ monit_services_present.stdout_lines }}"
with_items: "{{ monit_services_present.stdout_lines | default([]) }}"
when: monit_service_delete_unlisted and item|basename not in ansible_local.monit.monit_configured_services
notify: restart monit

0 comments on commit bb2aa38

Please sign in to comment.