From 8d919be383c341e72f2fab473d026cfd17e2568c Mon Sep 17 00:00:00 2001 From: Adrien Date: Sun, 14 Jun 2020 01:15:23 +0200 Subject: [PATCH] Write command in muti lines --- tasks/main.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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"