adds ollama and zed
All checks were successful
Nix Format Check / check-format (pull_request) Successful in 39s
All checks were successful
Nix Format Check / check-format (pull_request) Successful in 39s
Signed-off-by: Menno van Leeuwen <menno@vleeuwen.me>
This commit is contained in:
parent
9771175244
commit
4a8be91d6a
@ -37,6 +37,10 @@
|
|||||||
ansible.builtin.import_tasks: tasks/docker.yml
|
ansible.builtin.import_tasks: tasks/docker.yml
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
|
- name: Include Ollama tasks
|
||||||
|
ansible.builtin.import_tasks: tasks/ollama.yml
|
||||||
|
become: true
|
||||||
|
|
||||||
- name: Include GNOME Extensions tasks
|
- name: Include GNOME Extensions tasks
|
||||||
ansible.builtin.import_tasks: tasks/gnome-extensions.yml
|
ansible.builtin.import_tasks: tasks/gnome-extensions.yml
|
||||||
|
|
||||||
@ -61,4 +65,3 @@
|
|||||||
- name: Include flatpaks tasks
|
- name: Include flatpaks tasks
|
||||||
ansible.builtin.import_tasks: tasks/flatpaks.yml
|
ansible.builtin.import_tasks: tasks/flatpaks.yml
|
||||||
when: hostname in ['mennos-laptop', 'mennos-desktop']
|
when: hostname in ['mennos-laptop', 'mennos-desktop']
|
||||||
|
|
@ -46,3 +46,4 @@
|
|||||||
- com.plexamp.Plexamp
|
- com.plexamp.Plexamp
|
||||||
- io.github.nokse22.Exhibit
|
- io.github.nokse22.Exhibit
|
||||||
- net.nokyan.Resources
|
- net.nokyan.Resources
|
||||||
|
- dev.zed.Zed
|
||||||
|
17
config/ansible/tasks/ollama.yml
Normal file
17
config/ansible/tasks/ollama.yml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
- 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
|
Loading…
x
Reference in New Issue
Block a user