Fix ansible-lint warning [502] All tasks should be named
Just drop the redundant task
This commit is contained in:
parent
81c371c6a2
commit
e7588cd047
1 changed files with 2 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue