acme_certificate: Defined changed_when for calling acme.sh

wip
Felix Stupp 6 years ago
parent 226bc9c873
commit 1dd31a451f
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -10,6 +10,7 @@
args: args:
chdir: "~/.acme.sh" chdir: "~/.acme.sh"
register: acme_issue_result register: acme_issue_result
changed_when: acme_issue_result.rc != 2 or "Domains not changed" not in acme_issue_result.stdout
failed_when: acme_issue_result.rc != 0 and "Domains not changed" not in acme_issue_result.stdout failed_when: acme_issue_result.rc != 0 and "Domains not changed" not in acme_issue_result.stdout
- name: "Install certificate for {{ domain }}" - name: "Install certificate for {{ domain }}"

Loading…
Cancel
Save