From 5078e04043d0fee3c3af635a73a43cb97aa904cd Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Mon, 30 Dec 2024 18:51:23 +0100 Subject: [PATCH] gg --- roles/mgrote_blocky/tasks/main.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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