Write command in muti lines
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
75f9a93d8a
commit
8d919be383
1 changed files with 9 additions and 2 deletions
|
|
@ -144,13 +144,20 @@
|
||||||
register: cert
|
register: cert
|
||||||
|
|
||||||
- name: Install certbot and generate cert
|
- name: Install certbot and generate cert
|
||||||
command: certbot certonly --noninteractive --agree-tos --manual-public-ip-logging-ok --renew-by-default --text --webroot --webroot-path /var/www/ --email {{ certbot_adminemail }} -d {{ certbot_certname }}
|
command: >
|
||||||
|
certbot certonly --noninteractive --agree-tos --manual-public-ip-logging-ok
|
||||||
|
--renew-by-default --text --webroot --webroot-path /var/www/
|
||||||
|
--email {{ certbot_adminemail }} -d {{ certbot_certname }}
|
||||||
when:
|
when:
|
||||||
- not cert.stat.exists
|
- not cert.stat.exists
|
||||||
- certbot_authtype == "http"
|
- certbot_authtype == "http"
|
||||||
|
|
||||||
- name: Install certbot and generate cert
|
- name: Install certbot and generate cert
|
||||||
command: certbot certonly --noninteractive --agree-tos --manual-public-ip-logging-ok --renew-by-default --text --manual --manual-auth-hook "/etc/letsencrypt/lexicon-ovh.sh create" --manual-cleanup-hook "/etc/letsencrypt/lexicon-ovh.sh delete" --preferred-challenges dns --email {{ certbot_adminemail }} -d {{ certbot_certname }}
|
command: >
|
||||||
|
certbot certonly --noninteractive --agree-tos --manual-public-ip-logging-ok
|
||||||
|
--renew-by-default --text --manual --manual-auth-hook "/etc/letsencrypt/lexicon-ovh.sh create"
|
||||||
|
--manual-cleanup-hook "/etc/letsencrypt/lexicon-ovh.sh delete" --preferred-challenges dns
|
||||||
|
--email {{ certbot_adminemail }} -d {{ certbot_certname }}
|
||||||
when:
|
when:
|
||||||
- not cert.stat.exists
|
- not cert.stat.exists
|
||||||
- certbot_authtype == "dns"
|
- certbot_authtype == "dns"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue