launchd: new module to control services on macOS hosts (#305)

This commit is contained in:
Martin Migasiewicz 2020-07-22 15:54:58 +02:00 committed by GitHub
commit 80cd8329e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 947 additions and 0 deletions

View file

@ -0,0 +1,22 @@
---
- name: Test launchd module
block:
- name: Expect that launchctl exists
stat:
path: /bin/launchctl
register: launchctl_check
failed_when:
- not launchctl_check.stat.exists
- name: Run tests
include_tasks: test.yml
with_items:
- test_unknown
- test_start_stop
- test_restart
- test_unload
- test_reload
- test_runatload
when: ansible_os_family == 'Darwin'