Commit | Line | Data |
---|---|---|
687bfe6f MJ |
1 | --- |
2 | # Include variables and define needed variables. | |
3 | - name: Include OS-specific variables. | |
4302b783 | 4 | ansible.builtin.include_vars: "{{ item }}" |
60ecd280 MJ |
5 | with_first_found: |
6 | - "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml" | |
b67c1a0b | 7 | - "{{ ansible_distribution }}-{{ ansible_distribution_release }}.yml" |
60ecd280 MJ |
8 | - "{{ ansible_distribution }}.yml" |
9 | - "{{ ansible_os_family }}.yml" | |
687bfe6f MJ |
10 | |
11 | # Setup/install tasks. | |
4302b783 | 12 | - ansible.builtin.include_tasks: setup-RedHat.yml |
60ecd280 | 13 | when: ansible_os_family in ['RedHat', 'Rocky'] |
687bfe6f | 14 | |
4302b783 | 15 | - ansible.builtin.include_tasks: setup-Debian.yml |
687bfe6f MJ |
16 | when: ansible_os_family == 'Debian' |
17 | ||
4302b783 | 18 | - ansible.builtin.include_tasks: setup-Alpine.yml |
687bfe6f | 19 | when: ansible_os_family == 'Alpine' |
df8c0674 | 20 | |
4302b783 | 21 | - ansible.builtin.include_tasks: setup-Suse.yml |
df8c0674 | 22 | when: ansible_os_family == 'Suse' |