Update include_vars methode
This commit is contained in:
parent
c71ca190ab
commit
3da5d97020
3 changed files with 4 additions and 5 deletions
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
---
|
|
||||||
wireguard_packages:
|
|
||||||
- kmod-wireguard
|
|
||||||
- wireguard-tools
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue