diff --git a/tasks/main.yml b/tasks/main.yml index 25fdb79..55a203b 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -144,13 +144,20 @@ register: 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: - not cert.stat.exists - certbot_authtype == "http" - 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: - not cert.stat.exists - certbot_authtype == "dns"