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