Skip to content

Commit

Permalink
added ollama playbook
Browse files Browse the repository at this point in the history
  • Loading branch information
joshrnoll committed Nov 27, 2024
1 parent 6c60693 commit 2f2abec
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions containers/ollama/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
- name: Deploy {{ deploy_container_service_name }}
hosts: "{{ deploy_container_host_group_name }}"
vars:
deploy_container_service_name: ollama # Service/container name
deploy_container_host_group_name: ollama # Host group for container to be deployed to
deploy_container_service_image: ollama/ollama # Container image -- ex. louislam/uptime-kuma
deploy_container_service_tag: latest # Image tag -- ex. latest
deploy_container_service_port: "11434" # Must be quoted -- ex. "80" not 80
deploy_container_service_scheme: http # http or https
deploy_container_forward_auth: false # true or false
deploy_container_tailnet_name: "{{ tailnet_name }}"
deploy_container_oauth_client_secret: "{{ tailscale_containers_oauth_client['secret'] }}"
deploy_container_domain_name: "{{ domain_name }}"
deploy_container_cloudflare_email: "{{ cloudflare_email }}"
deploy_container_cloudflare_api_token: "{{ cloudflare_api_token }}"
deploy_container_volumes: # Customize or omit
- /home/{{ ansible_user }}/{{ deploy_container_service_name }}/data:/root/.ollama
deploy_container_labels: # Customize or omit
- key: "nautical-backup.enable"
value: "true"

tasks:
- name: Include vars
ansible.builtin.include_vars:
dir: "{{ root_playbook_dir }}/vars"

- name: Deploy container
ansible.builtin.include_role:
name: "{{ root_playbook_dir }}/roles/deploy_container"
...

0 comments on commit 2f2abec

Please sign in to comment.