Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/setup_snap/tasks/main.yml

raw
1 ---
2 ####################################################################
3 # WARNING: These are designed specifically for Ansible tests #
4 # and should not be used as examples of how to write Ansible roles #
5 ####################################################################
6
7 # Copyright (c) Ansible Project
8 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
9 # SPDX-License-Identifier: GPL-3.0-or-later
10
11 - name: Print information on which we distinguish
12 debug:
13 msg: "Distribution '{{ ansible_facts.distribution }}', version '{{ ansible_facts.distribution_version }}', OS family '{{ ansible_facts.os_family }}'"
14
15 - name: Include distribution specific tasks
16 include_tasks: "{{ lookup('first_found', params) }}"
17 vars:
18 params:
19 files:
20 - "D-{{ ansible_facts.distribution }}-{{ ansible_facts.distribution_version }}.yml"
21 - "D-{{ ansible_facts.distribution }}-{{ ansible_facts.distribution_major_version }}.yml"
22 - "{{ ansible_facts.os_family }}-{{ ansible_facts.distribution_major_version }}.yml"
23 - "D-{{ ansible_facts.distribution }}.yml"
24 - "{{ ansible_facts.os_family }}.yml"
25 - "nothing.yml"
26 paths:
27 - "{{ role_path }}/tasks"