ansible: add support for ansible 2.16
[lttng-ci.git] / automation / ansible / roles / babeltrace / tasks / main.yml
CommitLineData
3ea0152b
MJ
1---
2# Include variables and define needed variables.
3- name: Include OS-specific variables.
4302b783 4 ansible.builtin.include_vars: "{{ item }}"
9e2e4e6b 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.
4302b783 12- ansible.builtin.include_tasks: setup-RedHat.yml
9e2e4e6b 13 when: ansible_os_family in ['RedHat', 'Rocky']
3ea0152b 14
4302b783 15- ansible.builtin.include_tasks: setup-Debian.yml
3ea0152b 16 when: ansible_os_family == 'Debian'
1be0d012 17
4302b783 18- ansible.builtin.include_tasks: setup-Alpine.yml
1be0d012 19 when: ansible_os_family == 'Alpine'
599b56d0 20
4302b783 21- ansible.builtin.include_tasks: setup-Suse.yml
599b56d0 22 when: ansible_os_family == 'Suse'
This page took 0.031134 seconds and 4 git commands to generate.