- LaunchDaemon: mounts sifaka:/volume1/torrents to /Volumes/torrents-nfs at boot - LaunchAgent: runs minikube mount to pass through to /mnt/torrents in VM - Handlers to load both services when plist files change Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
27 lines
817 B
YAML
27 lines
817 B
YAML
---
|
|
# Minikube handlers
|
|
# Note: Restarting minikube is a heavy operation and may require manual intervention
|
|
|
|
- name: Restart minikube
|
|
ansible.builtin.shell: |
|
|
minikube stop 2>/dev/null || true
|
|
minikube start
|
|
changed_when: true
|
|
|
|
- name: Restart containerd in minikube
|
|
ansible.builtin.command:
|
|
cmd: minikube ssh --native-ssh=false "sudo systemctl restart containerd"
|
|
changed_when: true
|
|
|
|
- name: Load NFS mount LaunchDaemon
|
|
ansible.builtin.command:
|
|
cmd: launchctl load /Library/LaunchDaemons/com.blumeops.nfs-torrents.plist
|
|
become: true
|
|
failed_when: false
|
|
changed_when: true
|
|
|
|
- name: Load minikube mount LaunchAgent
|
|
ansible.builtin.command:
|
|
cmd: launchctl load {{ ansible_env.HOME }}/Library/LaunchAgents/com.blumeops.minikube-mount.plist
|
|
failed_when: false
|
|
changed_when: true
|