Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/alternatives/tasks/tests.yml

raw
1 ---
2 # Copyright (c) Ansible Project
3 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
4 # SPDX-License-Identifier: GPL-3.0-or-later
5
6 - block:
7 - include_tasks: remove_links.yml
8 - include_tasks: setup_test.yml
9 # at least two iterations:
10 # - first will use 'link currently absent',
11 # - second will receive 'link currently points to'
12 - include_tasks: test.yml
13 with_sequence: start=1 end=2
14 vars:
15 with_link: '{{ test_conf[0] }}'
16 with_alternatives: '{{ test_conf[1] }}'
17 mode: '{{ test_conf[2] }}'
18 # update-alternatives included in Fedora 26 (1.10) & Red Hat 7.4 (1.8) doesn't provide
19 # '--query' switch, 'link' is mandatory for these distributions.
20 when: ansible_facts.os_family != 'RedHat' or test_conf[0]