diff --git a/tasks/create-cert-standalone.yml b/tasks/create-cert-standalone.yml index 91df31a..7b7f29c 100644 --- a/tasks/create-cert-standalone.yml +++ b/tasks/create-cert-standalone.yml @@ -13,7 +13,7 @@ - name: Add renew options to cli.ini file copy: - path: /etc/letsencrypt/cli.ini + dest: /etc/letsencrypt/cli.ini content: "{{ certbot_cli_options }}" when: certbot_cli_options is defined diff --git a/tasks/install-with-snap.yml b/tasks/install-with-snap.yml index 588c8f7..2fea043 100644 --- a/tasks/install-with-snap.yml +++ b/tasks/install-with-snap.yml @@ -14,6 +14,7 @@ - name: Ensure snapd is enabled. systemd: name: snapd + state: started enabled: true - name: Enable classic snap support. diff --git a/tasks/renew-cron.yml b/tasks/renew-cron.yml index 0bfd6a0..6410be6 100644 --- a/tasks/renew-cron.yml +++ b/tasks/renew-cron.yml @@ -7,3 +7,10 @@ hour: "{{ certbot_auto_renew_hour }}" user: "{{ certbot_auto_renew_user }}" when: certbot_install_method == 'package' or certbot_install_method == 'source' + +- name: Enable systemd timer when using snap + systemd: + name: snap.certbot.renew.timer + state: started + enabled: yes + when: certbot_install_method == 'snap'