Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/cargo/tasks/test_general.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: Ensure application helloworld is uninstalled
7 community.general.cargo:
8 state: absent
9 name: helloworld
10 register: uninstall_absent_helloworld
11
12 - name: Install application helloworld
13 community.general.cargo:
14 name: helloworld
15 register: install_absent_helloworld
16
17 - name: Install application helloworld again
18 community.general.cargo:
19 name: helloworld
20 register: install_present_helloworld
21 ignore_errors: true
22
23 - name: Uninstall application helloworld
24 community.general.cargo:
25 state: absent
26 name: helloworld
27 register: uninstall_present_helloworld
28
29 - name: Check assertions helloworld
30 assert:
31 that:
32 - uninstall_absent_helloworld is not changed
33 - install_absent_helloworld is changed
34 - install_present_helloworld is not changed
35 - uninstall_present_helloworld is changed