2017-05-18 21:10:07 +00:00
|
|
|
---
|
2024-08-19 14:06:07 +00:00
|
|
|
- name: Include OS specific vars
|
|
|
|
ansible.builtin.include_vars: "{{ var_files }}"
|
2022-10-10 13:17:16 +00:00
|
|
|
vars:
|
|
|
|
var_files: "{{ lookup('first_found', params, errors='ignore') }}"
|
|
|
|
params:
|
|
|
|
files:
|
|
|
|
- "{{ ansible_lsb.id | default('') | lower }}.yml"
|
|
|
|
- "{{ ansible_os_family | lower }}-{{ ansible_distribution_major_version }}.yml"
|
|
|
|
- "{{ ansible_os_family | lower }}.yml"
|
|
|
|
- default.yml
|
|
|
|
paths:
|
|
|
|
- "vars"
|
|
|
|
when: var_files
|
2024-08-19 14:06:07 +00:00
|
|
|
- name: Configure NetworkManager
|
|
|
|
ansible.builtin.include_tasks: nm.yml
|
2022-11-11 20:51:36 +00:00
|
|
|
when: __network_nmcli | bool
|
2024-08-19 14:06:07 +00:00
|
|
|
- name: Configure network
|
|
|
|
ansible.builtin.include_tasks: setup.yml
|