All checks were successful
Nix Format Check / check-format (pull_request) Successful in 39s
Signed-off-by: Menno van Leeuwen <menno@vleeuwen.me>
18 lines
431 B
YAML
18 lines
431 B
YAML
- name: Check if Ollama is installed
|
|
ansible.builtin.command: ollama --version
|
|
register: ollama_check
|
|
changed_when: false
|
|
failed_when: false
|
|
|
|
- name: Install Ollama
|
|
ansible.builtin.shell: curl -fsSL https://ollama.com/install.sh | sh
|
|
when: ollama_check.rc != 0
|
|
|
|
- name: Check if Ollama is running
|
|
ansible.builtin.systemd:
|
|
name: ollama
|
|
state: started
|
|
enabled: yes
|
|
become: true
|
|
register: ollama_service
|