From 482e55bfc3ca33db2b6d1e99dab5ab992f43798a Mon Sep 17 00:00:00 2001 From: Lucas Maurice <9542135+lucasmaurice@users.noreply.github.com> Date: Tue, 7 Apr 2020 05:12:55 -0400 Subject: [PATCH] Update main.yml --- handlers/main.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/handlers/main.yml b/handlers/main.yml index 5cc02bf..215daae 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -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