diff --git a/roles/mgrote_blocky/tasks/main.yml b/roles/mgrote_blocky/tasks/main.yml index c6289335..ebb7ab78 100644 --- a/roles/mgrote_blocky/tasks/main.yml +++ b/roles/mgrote_blocky/tasks/main.yml @@ -48,14 +48,16 @@ notify: - restart service unit -- name: template service +- name: Ensure systemd services are templated become: true ansible.builtin.template: - src: "blocky.service.j2" - dest: /etc/systemd/system/blocky.service + src: "{{ item }}.j2" + dest: /etc/systemd/system/{{ item }} owner: root group: root mode: "0644" notify: - systemctl daemon-reload - restart service unit + loop: + - blocky.service