mirror of
https://github.com/nickjj/ansible-acme-sh.git
synced 2024-10-31 07:29:31 +01:00
Update main.yml
This commit is contained in:
parent
b8622472c2
commit
482e55bfc3
@ -1,10 +1,8 @@
|
|||||||
- name: reload services
|
- name: reload services
|
||||||
service:
|
command: "{{ item.reload_command }}"
|
||||||
name: "{{ item.service | default(acme_sh_service) }}"
|
|
||||||
state: restarted
|
|
||||||
when:
|
when:
|
||||||
- issue_result.results[domains_index].changed
|
- 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: "{{ acme_sh_domains }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
index_var: domains_index
|
index_var: domains_index
|
||||||
|
Loading…
Reference in New Issue
Block a user