blumeops/ansible/roles/minikube/handlers/main.yml
Erich Blume 40376b635f Add LaunchDaemon/LaunchAgent for persistent NFS and minikube mounts
- 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>
2026-01-21 08:22:53 -08:00

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