Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/alternatives/tasks/setup_test.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 - template:
7 src: dummy_alternative
8 dest: '{{ alternatives_dir }}/dummy'
9 owner: root
10 group: root
11 mode: '0644'
12 when: with_alternatives or ansible_facts.os_family != 'RedHat'
13 - file:
14 path: '{{ alternatives_dir }}/dummy'
15 state: absent
16 when: not with_alternatives and ansible_facts.os_family == 'RedHat'