Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/setup_pkg_mgr/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 - set_fact:
12 pkg_mgr: community.general.pkgng
13 ansible_pkg_mgr: community.general.pkgng
14 cacheable: true
15 when: ansible_facts.os_family == "FreeBSD"
16
17 - set_fact:
18 pkg_mgr: community.general.zypper
19 ansible_pkg_mgr: community.general.zypper
20 cacheable: true
21 when: ansible_facts.os_family == "Suse"
22
23 - set_fact:
24 pkg_mgr: community.general.pacman
25 ansible_pkg_mgr: community.general.pacman
26 cacheable: true
27 when: ansible_facts.os_family == "Archlinux"
28
29 - when: ansible_facts.os_family == "Archlinux"
30 block:
31 - name: ArchLinux specific setup
32 include_tasks: archlinux.yml