Add Ansible configuration and remove NixOS #1

Merged
vleeuwenmenno merged 36 commits from ansible into master 2025-01-22 15:30:41 +01:00
3 changed files with 25 additions and 4 deletions
Showing only changes of commit 4a8be91d6a - Show all commits

View File

@@ -1,6 +1,6 @@
- hosts: all
gather_facts: true
tasks:
- name: Include symlinks tasks
ansible.builtin.import_tasks: tasks/symlinks.yml
@@ -27,7 +27,7 @@
ansible.builtin.import_tasks: tasks/brave.yml
when: hostname in ['mennos-laptop', 'mennos-desktop']
become: true
- name: Include 1Password tasks
ansible.builtin.import_tasks: tasks/1password.yml
when: hostname in ['mennos-laptop', 'mennos-desktop']
@@ -37,9 +37,13 @@
ansible.builtin.import_tasks: tasks/docker.yml
become: true
- name: Include Ollama tasks
ansible.builtin.import_tasks: tasks/ollama.yml
become: true
- name: Include GNOME Extensions tasks
ansible.builtin.import_tasks: tasks/gnome-extensions.yml
- name: Ensure common packages are installed
ansible.builtin.package:
name:
@@ -61,4 +65,3 @@
- name: Include flatpaks tasks
ansible.builtin.import_tasks: tasks/flatpaks.yml
when: hostname in ['mennos-laptop', 'mennos-desktop']

View File

@@ -46,3 +46,4 @@
- com.plexamp.Plexamp
- io.github.nokse22.Exhibit
- net.nokyan.Resources
- dev.zed.Zed

View 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