From b143d9c848cde8625c1f930c8968a2ebfef8728f Mon Sep 17 00:00:00 2001 From: Ruakij Date: Wed, 12 Apr 2023 14:45:31 +0200 Subject: [PATCH] Fix checks --- wireguard-ipv6-converter/tasks/deploy.yml | 2 +- wireguard-ipv6-converter/tasks/setup-service.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wireguard-ipv6-converter/tasks/deploy.yml b/wireguard-ipv6-converter/tasks/deploy.yml index ce13231..7ef0ace 100644 --- a/wireguard-ipv6-converter/tasks/deploy.yml +++ b/wireguard-ipv6-converter/tasks/deploy.yml @@ -1,6 +1,6 @@ - name: Get architecture 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 get_url: diff --git a/wireguard-ipv6-converter/tasks/setup-service.yml b/wireguard-ipv6-converter/tasks/setup-service.yml index b733887..1661861 100644 --- a/wireguard-ipv6-converter/tasks/setup-service.yml +++ b/wireguard-ipv6-converter/tasks/setup-service.yml @@ -2,11 +2,11 @@ ansible.builtin.template: src: wg-ipv6-conv.service.jinja2 dest: /etc/systemd/system/wg-ipv6-converter_{{ wireguard_ipv6_converter.setup.interface }}.service - register: service-file + register: serviceFile - name: Enable service ansible.builtin.service: 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