Reformatted // Renamed nginx configs // Added nextcloud handler for db check // Added tags

main
Tilmann Sager 2021-03-20 22:52:09 +01:00
parent 15045d9229
commit 737cb4539b
1 changed files with 4 additions and 4 deletions

View File

@ -16,7 +16,7 @@
get_url:
url: https://get.acme.sh
dest: /tmp/acme.sh
mode: '0700'
mode: "0700"
when: not is_acme_sh_installed.stat.exists
- name: Install acme.sh
@ -36,9 +36,9 @@
- name: Issue certificates
become: yes
command:
cmd: ./acme.sh --issue -d {{ item.name }} -d '*.{{ item.name }}' --dns dns_{{ item.dns_provider }}
cmd: ./acme.sh --issue -d {{ item.name }} -d '*.{{ item.name }}' --dns dns_{{ item.dns_provider }}
chdir: ~/.acme.sh
environment:
environment:
INWX_User: gkrause
INWX_Password: "{{ inwx_pass }}"
INWX_Shared_Secret: "{{ inwx_shared }}"
@ -46,7 +46,7 @@
loop: "{{ domains }}"
register: cert_result
changed_when: cert_result.rc == 0 and "Cert success." in cert_result.stdout
failed_when:
failed_when:
- "'Domains not changed' not in cert_result.stdout"
- "'Cert success.' not in cert_result.stdout"