Skip to content

Commit

Permalink
Missing vars check.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmaurice authored Jan 11, 2021
1 parent 131a0b3 commit 0f16f23
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@
when:
- not item.remove | default(false)
- acme_cloudflare_token is defined
- acme_cloudflare_account_id is not defined
- acme_cloudflare_zone_id is not defined
loop: "{{ acme_sh_domains }}"
register: issue_result2
changed_when: issue_result2.rc == 0 and "Cert success" in issue_result2.stdout
Expand All @@ -94,7 +96,8 @@
issue_result: "{{ issue_result2 }}"
when:
- acme_cloudflare_token is defined
- acme_cloudflare_email is defined
- acme_cloudflare_account_id is not defined
- acme_cloudflare_zone_id is not defined

# Install the new certificates
- name: Install acme.sh certificate(s)
Expand Down

0 comments on commit 0f16f23

Please sign in to comment.