- name: install certbot pacman: name: [certbot,certbot-nginx] state: present - name: configure certbot.service.tpl template: src: certbot.service.j2 dest: /etc/systemd/system/certbot.service notify: reload certbot service - name: configure certbot.timer.tpl template: src: certbot.timer.j2 dest: /etc/systemd/system/certbot.timer register: certbot_timer changed_when: certbot_timer.changed or activate_all_timers | default(false) | bool notify: restart certbot timer