Commit | Line | Data |
---|---|---|
3ea0152b MJ |
1 | --- |
2 | # Include variables and define needed variables. | |
3 | - name: Include OS-specific variables. | |
9e2e4e6b MJ |
4 | include_vars: "{{ item }}" |
5 | with_first_found: | |
97d05e22 | 6 | - "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}-{{ ansible_architecture }}.yml" |
9e2e4e6b MJ |
7 | - "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml" |
8 | - "{{ ansible_distribution }}.yml" | |
9 | - "{{ ansible_os_family }}.yml" | |
3ea0152b MJ |
10 | |
11 | # Setup/install tasks. | |
12 | - include: setup-RedHat.yml | |
9e2e4e6b | 13 | when: ansible_os_family in ['RedHat', 'Rocky'] |
3ea0152b MJ |
14 | |
15 | - include: setup-Debian.yml | |
16 | when: ansible_os_family == 'Debian' | |
17 | ||
1be0d012 MJ |
18 | - include: setup-Alpine.yml |
19 | when: ansible_os_family == 'Alpine' | |
20 | ||
599b56d0 MJ |
21 | - include: setup-Suse.yml |
22 | when: ansible_os_family == 'Suse' | |
23 | ||
d82e5cee | 24 | - include: setup-Windows.yml |
170dfe8d | 25 | when: ansible_os_family == 'Windows' |
d82e5cee | 26 | |
170dfe8d MJ |
27 | # Setup user accounts |
28 | - include: users.yml | |
d82e5cee | 29 | when: ansible_os_family != 'Windows' |
5e186c3f | 30 | |
d82e5cee | 31 | - include: users-Windows.yml |
170dfe8d | 32 | when: ansible_os_family == 'Windows' |