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
parent 669b7bf090
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,20 @@
---
- name: "[{{ item }}] Deploy test service configuration"
template:
src: "{{ launchd_service_name }}.plist.j2"
dest: "{{ launchd_plist_location }}"
become: yes
- name: install the test daemon script
copy:
src: ansible_test_service.py
dest: /usr/local/sbin/ansible_test_service
mode: '755'
- name: rewrite shebang in the test daemon script
lineinfile:
path: /usr/local/sbin/ansible_test_service
line: "#!{{ ansible_python_interpreter | realpath }}"
insertbefore: BOF
firstmatch: yes