Update main.yml

This commit is contained in:
Lucas Maurice 2020-04-07 05:12:55 -04:00 committed by GitHub
parent b8622472c2
commit 482e55bfc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -1,10 +1,8 @@
- name: reload services
service:
name: "{{ item.service | default(acme_sh_service) }}"
state: restarted
command: "{{ item.reload_command }}"
when:
- issue_result.results[domains_index].changed
- item.service is defined or acme_sh_service is not empty
- item.reload_command
loop: "{{ acme_sh_domains }}"
loop_control:
index_var: domains_index