--- # 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 ansible.builtin.command: launchctl kickstart -k system/com.ollama.ollama changed_when: true when: ansible_facts['system'] == 'Darwin' - name: Restart ollama linux ansible.builtin.systemd: name: ollama state: restarted daemon_reload: true become: true when: ansible_facts['system'] == 'Linux'