From e8c1a1323b70e404983619ebcf97bc15d1b190aa Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sun, 15 Dec 2024 17:44:51 +0100 Subject: [PATCH] add ollama --- playbooks/apps/all.yaml | 1 + playbooks/apps/files/bin/restic-excludes | 1 + playbooks/apps/files/ollama/docker-compose.yaml | 10 ++++++++++ playbooks/apps/ollama.yaml | 11 +++++++++++ 4 files changed, 23 insertions(+) create mode 100644 playbooks/apps/files/ollama/docker-compose.yaml create mode 100644 playbooks/apps/ollama.yaml diff --git a/playbooks/apps/all.yaml b/playbooks/apps/all.yaml index 27cf0f0..445f85d 100644 --- a/playbooks/apps/all.yaml +++ b/playbooks/apps/all.yaml @@ -13,6 +13,7 @@ - import_playbook: media.yaml # noqa: name[play] - import_playbook: miniflux.yaml # noqa: name[play] - import_playbook: nextcloud-aio.yaml # noqa: name[play] +- import_playbook: ollama.yaml # noqa: name[play] - import_playbook: paperless-ngx.yaml # noqa: name[play] - import_playbook: portainer.yaml # noqa: name[play] - import_playbook: privatebin.yaml # noqa: name[play] diff --git a/playbooks/apps/files/bin/restic-excludes b/playbooks/apps/files/bin/restic-excludes index 566a1f8..51cdecc 100644 --- a/playbooks/apps/files/bin/restic-excludes +++ b/playbooks/apps/files/bin/restic-excludes @@ -30,3 +30,4 @@ versions backups/hass paperless-ngx/data paperless-ngx/media +ollama_data diff --git a/playbooks/apps/files/ollama/docker-compose.yaml b/playbooks/apps/files/ollama/docker-compose.yaml new file mode 100644 index 0000000..6dd36bd --- /dev/null +++ b/playbooks/apps/files/ollama/docker-compose.yaml @@ -0,0 +1,10 @@ +services: + ollama: + image: ollama/ollama + restart: unless-stopped + ports: + - "11434:11434" + volumes: + - ./ollama_data:/root/.ollama +# init: true +# tty: true diff --git a/playbooks/apps/ollama.yaml b/playbooks/apps/ollama.yaml new file mode 100644 index 0000000..c538e3a --- /dev/null +++ b/playbooks/apps/ollama.yaml @@ -0,0 +1,11 @@ +--- +- name: Ollama + hosts: servers + gather_facts: false + tasks: + - name: Docker + ansible.builtin.include_role: + name: docker + + vars: + docker_app_name: ollama