mirror of
https://github.com/nickjj/ansible-acme-sh.git
synced 2024-10-31 07:29:31 +01:00
Fixed ansible lint.
This commit is contained in:
parent
5dd5d1d7d4
commit
d61b4d51fd
@ -51,9 +51,12 @@
|
|||||||
- "CF_Token": "{{ acme_cloudflare_token }}"
|
- "CF_Token": "{{ acme_cloudflare_token }}"
|
||||||
- "CF_Account_ID": "{{ acme_cloudflare_account_id }}"
|
- "CF_Account_ID": "{{ acme_cloudflare_account_id }}"
|
||||||
- "CF_Zone_ID": "{{ acme_cloudflare_zone_id }}"
|
- "CF_Zone_ID": "{{ acme_cloudflare_zone_id }}"
|
||||||
when: not item.remove | default(false)
|
when:
|
||||||
|
- not item.remove | default(false)
|
||||||
|
- acme_cloudflare_token is defined
|
||||||
|
- acme_cloudflare_account_id is defined
|
||||||
|
- acme_cloudflare_zone_id is defined
|
||||||
loop: "{{ acme_sh_domains }}"
|
loop: "{{ acme_sh_domains }}"
|
||||||
when: acme_cloudflare_account_id is defined and acme_cloudflare_zone_id is defined
|
|
||||||
register: issue_result
|
register: issue_result
|
||||||
changed_when: issue_result.rc == 0 and "Cert success" in issue_result.stdout and not item.force_renew | default(false)
|
changed_when: issue_result.rc == 0 and "Cert success" in issue_result.stdout and not item.force_renew | default(false)
|
||||||
failed_when: issue_result.rc != 0 and "Domains not changed" not in issue_result.stdout
|
failed_when: issue_result.rc != 0 and "Domains not changed" not in issue_result.stdout
|
||||||
@ -69,9 +72,11 @@
|
|||||||
environment:
|
environment:
|
||||||
- "CF_Key": "{{ acme_cloudflare_token }}"
|
- "CF_Key": "{{ acme_cloudflare_token }}"
|
||||||
- "CF_Email": "{{ acme_cloudflare_email }}"
|
- "CF_Email": "{{ acme_cloudflare_email }}"
|
||||||
when: not item.remove | default(false)
|
when:
|
||||||
|
- not item.remove | default(false)
|
||||||
|
- acme_cloudflare_token is defined
|
||||||
|
- acme_cloudflare_email is defined
|
||||||
loop: "{{ acme_sh_domains }}"
|
loop: "{{ acme_sh_domains }}"
|
||||||
when: acme_cloudflare_token is defined and acme_cloudflare_email is defined
|
|
||||||
register: issue_result
|
register: issue_result
|
||||||
changed_when: issue_result.rc == 0 and "Cert success" in issue_result.stdout and not item.force_renew | default(false)
|
changed_when: issue_result.rc == 0 and "Cert success" in issue_result.stdout and not item.force_renew | default(false)
|
||||||
failed_when: issue_result.rc != 0 and "Domains not changed" not in issue_result.stdout
|
failed_when: issue_result.rc != 0 and "Domains not changed" not in issue_result.stdout
|
||||||
|
Loading…
Reference in New Issue
Block a user