Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/alternatives/tasks/path_is_checked.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 - name: Try with nonexistent path
7 alternatives:
8 name: dummy
9 path: '/non/existent/path/there'
10 link: '/usr/bin/dummy'
11 ignore_errors: true
12 register: alternative
13
14 - name: Check previous task failed
15 assert:
16 that:
17 - 'alternative is failed'