Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/pipx/tasks/testcase-oldsitewide.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 /opt/pipx
7 ansible.builtin.file:
8 path: /opt/pipx
9 state: directory
10 mode: "0755"
11
12 - name: Install tox site-wide
13 community.general.pipx:
14 name: tox
15 state: latest
16 register: install_tox_sitewide
17 environment:
18 PIPX_HOME: /opt/pipx
19 PIPX_BIN_DIR: /usr/local/bin
20
21 - name: stat /usr/local/bin/tox
22 ansible.builtin.stat:
23 path: /usr/local/bin/tox
24 register: usrlocaltox
25
26 - name: Uninstall tox site-wide
27 community.general.pipx:
28 name: tox
29 state: uninstall
30 register: uninstall_tox_sitewide
31 environment:
32 PIPX_HOME: /opt/pipx
33 PIPX_BIN_DIR: /usr/local/bin
34
35 - name: check assertions
36 ansible.builtin.assert:
37 that:
38 - install_tox_sitewide is changed
39 - usrlocaltox.stat.exists
40 - uninstall_tox_sitewide is changed