---
- name: Restart lego renew
ansible.builtin.service:
state: "{{ lego_renew_enabled | ternary('restarted', 'stopped', 'restarted') }}"
daemon_reload: True
name: lego-renew.service
listen: __lego_restart