computer-playbook/tasks/recieve-certbot-certificate.yml

5 lines
260 B
YAML

- name: "recieve certbot certificate for {{ domain }}"
command: >-
certbot certonly --agree-tos --email {{ administrator_email }}
--non-interactive --webroot -w /var/lib/letsencrypt/ -d {{ domain }}
{{ '--test-cert' if mode_test | bool else '' }}