Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/hg/tasks/main.yml

raw
1 ####################################################################
2 # WARNING: These are designed specifically for Ansible tests #
3 # and should not be used as examples of how to write Ansible roles #
4 ####################################################################
5
6 # test code for the hg module
7 # Copyright (c) 2014, James Tanner <[email protected]>
8 #
9 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
10 # SPDX-License-Identifier: GPL-3.0-or-later
11
12 - name: determine if mercurial is already installed
13 command: which hg
14 register: has_hg
15 ignore_errors: true
16
17 - block:
18 - name: install mercurial
19 include_tasks: install.yml
20 when: has_hg is failed
21
22 - name: test mercurial
23 include_tasks: run-tests.yml
24
25 - name: uninstall mercurial
26 include_tasks: uninstall.yml
27 when: has_hg is failed