From 0cb82272483c4c5fa130b64749850b19b0003a87 Mon Sep 17 00:00:00 2001 From: Mikhail Konyakhin Date: Wed, 16 Jan 2019 16:18:38 +0300 Subject: [PATCH] Add install depends for wireguard. --- tasks/debian_packages.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/tasks/debian_packages.yml b/tasks/debian_packages.yml index c8d38e5..8c5ab04 100644 --- a/tasks/debian_packages.yml +++ b/tasks/debian_packages.yml @@ -1,7 +1,24 @@ --- - include_tasks: "{{ ansible_distribution | lower }}_repositories.yml" +- name: Install linux headers (Ubuntu) + apt: + name: + - linux-headers-generic + - linux-headers-{{ ansible_kernel }} + state: present + update_cache: yes + when: ansible_distribution == "Ubuntu" + +- name: Install kernel headers (Debian) + apt: + name: linux-headers-{{ ansible_kernel }} + state: present + update_cache: yes + when: ansible_distribution == "Debian" + - name: Install wireguard - package: + apt: name: wireguard state: present + update_cache: yes