Add start to naming

role_wireguard-ipv6-converter
Ruakij 2 years ago
parent 7f503d983a
commit 521b76453a

@ -4,7 +4,7 @@
dest: /etc/systemd/system/wg-ipv6-converter_{{ wireguard_ipv6_converter.setup.interface }}.service dest: /etc/systemd/system/wg-ipv6-converter_{{ wireguard_ipv6_converter.setup.interface }}.service
register: serviceFile register: serviceFile
- name: Enable service - name: Enable & Start service
ansible.builtin.service: ansible.builtin.service:
name: wg-ipv6-converter_{{ wireguard_ipv6_converter.setup.interface }} name: wg-ipv6-converter_{{ wireguard_ipv6_converter.setup.interface }}
state: "{{ 'restarted' if serviceFile.changed else 'started' }}" state: "{{ 'restarted' if serviceFile.changed else 'started' }}"

Loading…
Cancel
Save