3
0
Fork 0

Improves linting.

This commit is contained in:
pierreozoux 2019-09-18 23:30:34 +02:00
parent 9a0e70ee25
commit b108cc1818
5 changed files with 13 additions and 11 deletions

View File

@ -10,8 +10,8 @@
state: present
vars:
packages:
- wireguard-dkms
- wireguard-tools
- wireguard-dkms
- wireguard-tools
tags:
- wg-install
- skip_ansible_lint
@ -21,7 +21,7 @@
name: wireguard
state: present
register: wireguard_module_enabled
until: wireguard_module_enabled is succeeded
until: wireguard_module_enabled is succeeded
retries: 10
delay: 10
failed_when: wireguard_module_enabled is failure
@ -68,6 +68,7 @@
shell: "wg genkey"
register: wg_private_key_result
when: not private_key_file_stat.stat.exists
changed_when: false
tags:
- wg-generate-keys
- skip_ansible_lint
@ -83,6 +84,7 @@
shell: "echo '{{ wg_private_key }}' | wg pubkey"
register: wg_public_key_result
when: not private_key_file_stat.stat.exists
changed_when: false
tags:
- wg-generate-keys
@ -153,4 +155,4 @@
service:
name: "wg-quick@{{ wireguard_interface }}"
state: started
enabled: yes
enabled: true

View File

@ -3,7 +3,7 @@
pacman:
name: "{{ packages }}"
state: present
become: yes
become: true
vars:
packages:
- linux-headers

View File

@ -8,4 +8,4 @@
- name: Install EPEL repository
yum:
name: epel-release
update_cache: yes
update_cache: true

View File

@ -21,14 +21,14 @@
apt_repository:
repo: "deb http://deb.debian.org/debian/ unstable main"
state: present
update_cache: yes
update_cache: true
tags:
- wg-install
- name: Get architecture
shell: dpkg --print-architecture
register: dpkg_arch
changed_when: False
changed_when: false
- name: Install kernel headers to compile wireguard with DKMS
apt:

View File

@ -12,8 +12,8 @@
state: present
vars:
packages:
- software-properties-common
- linux-headers-{{ ansible_kernel }}
- software-properties-common
- linux-headers-{{ ansible_kernel }}
tags:
- wg-install
@ -21,6 +21,6 @@
apt_repository:
repo: "ppa:wireguard/wireguard"
state: present
update_cache: yes
update_cache: true
tags:
- wg-install