Fix checks

role_wireguard-ipv6-converter
Ruakij 2 years ago
parent f95bcbc38d
commit b143d9c848

@ -1,6 +1,6 @@
- name: Get architecture - name: Get architecture
set_fact: set_fact:
arch: {{ 'amd64' if ansible_architecture == 'x86_64' elif 'amd64' if ansible_architecture == 'aarch64' }} arch: "{{ 'amd64' if ansible_architecture == 'x86_64' else 'arm64' }}"
- name: Download binary - name: Download binary
get_url: get_url:

@ -2,11 +2,11 @@
ansible.builtin.template: ansible.builtin.template:
src: wg-ipv6-conv.service.jinja2 src: wg-ipv6-conv.service.jinja2
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: service-file register: serviceFile
- name: Enable service - name: Enable 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 service-file.changed else 'started' }}' state: "{{ 'restarted' if serviceFile.changed else 'started' }}"
enabled: true enabled: true

Loading…
Cancel
Save