Skip to content

Commit

Permalink
Add install depends for wireguard.
Browse files Browse the repository at this point in the history
  • Loading branch information
MemberIT committed Jan 16, 2019
1 parent dc35877 commit 0cb8227
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion tasks/debian_packages.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0cb8227

Please sign in to comment.