Debian Codegraph @

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

raw
1 ---
2 ####################################################################
3 # WARNING: These are designed specifically for Ansible tests #
4 # and should not be used as examples of how to write Ansible roles #
5 ####################################################################
6
7 # Copyright (c) Ansible Project
8 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
9 # SPDX-License-Identifier: GPL-3.0-or-later
10
11 - name: Test launchd module
12 block:
13 - name: Expect that launchctl exists
14 stat:
15 path: /bin/launchctl
16 register: launchctl_check
17 failed_when:
18 - not launchctl_check.stat.exists
19
20 - name: Run tests
21 include_tasks: test.yml
22 with_items:
23 - test_unknown
24 - test_start_stop
25 - test_restart
26 - test_unload
27 - test_reload
28 - test_runatload
29
30 when: ansible_facts.os_family == 'Darwin'