From 521b76453af49f84741d436263c45bd342138ccf Mon Sep 17 00:00:00 2001 From: Ruakij Date: Wed, 12 Apr 2023 14:45:55 +0200 Subject: [PATCH] Add start to naming --- wireguard-ipv6-converter/tasks/setup-service.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wireguard-ipv6-converter/tasks/setup-service.yml b/wireguard-ipv6-converter/tasks/setup-service.yml index 1661861..d9d4f9a 100644 --- a/wireguard-ipv6-converter/tasks/setup-service.yml +++ b/wireguard-ipv6-converter/tasks/setup-service.yml @@ -4,7 +4,7 @@ dest: /etc/systemd/system/wg-ipv6-converter_{{ wireguard_ipv6_converter.setup.interface }}.service register: serviceFile -- name: Enable service +- name: Enable & Start service ansible.builtin.service: name: wg-ipv6-converter_{{ wireguard_ipv6_converter.setup.interface }} state: "{{ 'restarted' if serviceFile.changed else 'started' }}"