From e7588cd047c55fc23436d1d1712a5db9d7c08a6d Mon Sep 17 00:00:00 2001 From: Robin Schneider Date: Sun, 13 Sep 2020 23:23:09 +0200 Subject: [PATCH] Fix ansible-lint warning [502] All tasks should be named Just drop the redundant task --- tasks/setup-debian-vanilla.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tasks/setup-debian-vanilla.yml b/tasks/setup-debian-vanilla.yml index bc1a694..6a9ced0 100644 --- a/tasks/setup-debian-vanilla.yml +++ b/tasks/setup-debian-vanilla.yml @@ -15,16 +15,13 @@ - name: (Debian) Get architecture command: "dpkg --print-architecture" - register: dpkg_arch + register: wireguard__fact_dpkg_arch changed_when: False -- set_fact: - kernel_header_version: "{{ ('-cloud-' in ansible_kernel) | ternary(ansible_kernel,dpkg_arch.stdout) }}" - - name: (Debian) Install kernel headers to compile Wireguard with DKMS apt: name: - - "linux-headers-{{ kernel_header_version }}" + - "linux-headers-{{ ('-cloud-' in ansible_kernel) | ternary(ansible_kernel,wireguard__fact_dpkg_arch.stdout) }}" state: present - name: (Debian) Install WireGuard packages