diff --git a/tasks/certificates.yml b/tasks/certificates.yml index a102465..02f2d06 100644 --- a/tasks/certificates.yml +++ b/tasks/certificates.yml @@ -12,13 +12,17 @@ tags: certbot - name: create a new certificate - command: 'certbot certonly -n --agree-tos -d {{ item.item.name }} -m {{ certbot_mail }} --webroot --webroot-path {{ certbot_path }} --rsa-key-size {{ certbot_key_size }}' + command: > + certbot certonly -n --agree-tos -d {{ item.item.name }} -m {{ certbot_mail }} + --webroot --webroot-path {{ certbot_path }} --rsa-key-size {{ certbot_key_size }} loop: '{{ st.results }}' when: (certbot_role == 'master' or item.item.name == ansible_fqdn) and not item.stat.exists and ng.stat.exists tags: certbot - name: create a new certificate (standalone) - command: 'certbot certonly -n --agree-tos -d {{ item.item.name }} -m {{ certbot_mail }} --standalone --rsa-key-size {{ certbot_key_size }}' + command: > + certbot certonly -n --agree-tos -d {{ item.item.name }} -m {{ certbot_mail }} + --standalone --rsa-key-size {{ certbot_key_size }} loop: '{{ st.results }}' when: (certbot_role == 'master' or item.item.name == ansible_fqdn) and not item.stat.exists and not ng.stat.exists tags: certbot