Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/cargo/tasks/test_rustup_cargo.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: Install application helloworld
7 community.general.cargo:
8 executable: "{{ rustup_cargo_bin }}"
9 name: helloworld
10 register: rustup_install_absent_helloworld
11
12 - name: Uninstall application helloworld
13 community.general.cargo:
14 executable: "{{ rustup_cargo_bin }}"
15 state: absent
16 name: helloworld
17 register: rustup_uninstall_present_helloworld
18
19 - name: Check assertions helloworld
20 assert:
21 that:
22 - rustup_install_absent_helloworld is changed
23 - rustup_uninstall_present_helloworld is changed