Merge pull request #67 from ypid/improve
Improve coding style, spelling and Debian supportmaster 7.3.0
commit
fbf47d2a13
@ -1,37 +1,27 @@
|
|||||||
---
|
---
|
||||||
- name: (Debian) Install GPG - required to add wireguard key
|
- name: (Debian) Add WireGuard repository on buster
|
||||||
apt:
|
|
||||||
name: gnupg
|
|
||||||
state: present
|
|
||||||
|
|
||||||
- name: (Debian) Add WireGuard repository on buster or earlier
|
|
||||||
apt_repository:
|
apt_repository:
|
||||||
repo: "deb http://deb.debian.org/debian buster-backports main"
|
repo: "deb http://deb.debian.org/debian buster-backports main"
|
||||||
state: present
|
state: "{{ 'present' if (ansible_distribution_version | int <= 10) else 'absent' }}"
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
when: ansible_distribution_version | int <= 10
|
|
||||||
tags:
|
tags:
|
||||||
- wg-install
|
- wg-install
|
||||||
|
|
||||||
- name: (Debian) Get architecture
|
- name: (Debian) Get architecture
|
||||||
command: "dpkg --print-architecture"
|
command: "dpkg --print-architecture"
|
||||||
register: dpkg_arch
|
register: wireguard__fact_dpkg_arch
|
||||||
changed_when: False
|
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
|
- name: (Debian) Install kernel headers to compile Wireguard with DKMS
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
- "linux-headers-{{ kernel_header_version }}"
|
- "linux-headers-{{ ('-cloud-' in ansible_kernel) | ternary(ansible_kernel,wireguard__fact_dpkg_arch.stdout) }}"
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: (Debian) Install wireguard packages
|
- name: (Debian) Install WireGuard packages
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
- "wireguard-dkms"
|
- "wireguard"
|
||||||
- "wireguard-tools"
|
|
||||||
state: present
|
state: present
|
||||||
tags:
|
tags:
|
||||||
- wg-install
|
- wg-install
|
||||||
|
Loading…
Reference in New Issue