Commit | Line | Data |
---|---|---|
601db8ee MJ |
1 | --- |
2 | # Include variables and define needed variables. | |
3 | - name: Include OS-specific variables. | |
32710463 MJ |
4 | include_vars: "{{ item }}" |
5 | with_first_found: | |
6 | - "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml" | |
7 | - "{{ ansible_distribution }}.yml" | |
8 | - "{{ ansible_os_family }}.yml" | |
601db8ee MJ |
9 | |
10 | # Setup/install tasks. | |
11 | - include: setup-RedHat.yml | |
32710463 | 12 | when: ansible_os_family in ['RedHat', 'Rocky'] |
601db8ee MJ |
13 | |
14 | - include: setup-Debian.yml | |
15 | when: ansible_os_family == 'Debian' | |
1be0d012 MJ |
16 | |
17 | - include: setup-Alpine.yml | |
18 | when: ansible_os_family == 'Alpine' |