diff --git a/defaults/main.yml b/defaults/main.yml index 7630a15..a337675 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -12,3 +12,15 @@ certbot_preferred_challenges: dns certbot_server: https://acme-v02.api.letsencrypt.org/directory certbot_email: mail@example.com certbot_rsa_key_size: 4096 +certbot_domains: + - example.com + +certbot_command_arguments: + - "certonly" + - "--agree-tos" + - "--manual" + - "--manual-auth-hook /path/to/authenticator.py" + - "--manual-cleanup-hook /path/to/cleanup.py" + - "--manual-public-ip-logging-ok" + - "-n" + - "-d {{ certbot_domains | join(',') }}" diff --git a/tasks/install.yml b/tasks/install.yml index c5e2249..4a0290d 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -33,7 +33,7 @@ minute: 55 hour: 3 user: "{{ certbot_user }}" - job: "YUMINTERACTIVE: 0 /usr/sbin/yum-autoupdate" + job: "certbot {{ certbot_command_arguments | join(" ") }}" cron_file: "{{ certbot_cronfile | default(omit) }}" become: True become_user: "{{ certbot_user }}"