Add kiwix role to ansible playbook
Manages kiwix-serve LaunchAgent configuration for the wikipedia mirror on indri (port 5501). Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
c182f4903d
commit
0d2978259d
5 changed files with 47 additions and 0 deletions
13
ansible/roles/kiwix/tasks/main.yml
Normal file
13
ansible/roles/kiwix/tasks/main.yml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
- name: Deploy kiwix-serve LaunchAgent plist
|
||||
ansible.builtin.template:
|
||||
src: kiwix-serve.plist.j2
|
||||
dest: ~/Library/LaunchAgents/mcquack.eblume.kiwix-serve.plist
|
||||
mode: '0644'
|
||||
notify: restart kiwix-serve
|
||||
|
||||
- name: Ensure kiwix-serve is loaded
|
||||
ansible.builtin.command: launchctl load ~/Library/LaunchAgents/mcquack.eblume.kiwix-serve.plist
|
||||
register: launchctl_load
|
||||
changed_when: launchctl_load.rc == 0
|
||||
failed_when: false
|
||||
Loading…
Add table
Add a link
Reference in a new issue