Update include_vars methode

This commit is contained in:
Adrien Reslinger 2020-08-23 01:25:34 +02:00
parent c71ca190ab
commit 3da5d97020
3 changed files with 4 additions and 5 deletions

View file

@ -2,7 +2,10 @@
- name: WireGuard setup - name: WireGuard setup
block: block:
- name: Include vars for {{ ansible_os_family }} - name: Include vars for {{ ansible_os_family }}
include_vars: "{{ ansible_os_family }}_{{ ansible_distribution_major_version }}.yml" include_vars: "{{ item }}"
with_first_found:
- "{{ ansible_os_family }}_{{ ansible_distribution_major_version }}.yml"
- "{{ ansible_os_family }}.yml"
- name: Pre-installation - name: Pre-installation
include_tasks: "install_{{ ansible_os_family }}.yml" include_tasks: "install_{{ ansible_os_family }}.yml"

View file

@ -1,4 +0,0 @@
---
wireguard_packages:
- kmod-wireguard
- wireguard-tools