17 lines
506 B
YAML

---
# Part of role: ollama
# Called by: ansible/playbooks/setup-ollama.yaml
# ansible/playbooks/setup-gpu-node.yaml
# Description: Handlers for the ollama role. Restarts ollama on config changes.
- name: restart ollama
become: true
command: launchctl kickstart -k system/com.ollama.ollama
when: ansible_system == 'Darwin'
- name: restart ollama linux
ansible.builtin.systemd:
name: ollama
state: restarted
daemon_reload: true
become: true
when: ansible_system == 'Linux'