diff --git a/README.md b/README.md index e69de29..2b544b0 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,3 @@ +``` +ansible-galaxy collection install community.docker +``` diff --git a/ansible-playbook.yml b/ansible-playbook.yml index 8d7ef4e..ba251a5 100644 --- a/ansible-playbook.yml +++ b/ansible-playbook.yml @@ -1,13 +1,13 @@ --- - name: Deploy Ollama + Open WebUI - hosts: your_gpu_servers + hosts: all become: yes vars: ollama_port: 11434 open_webui_port: "{{ lookup('env', 'OPEN_WEBUI_PORT') | default('3000') }}" ollama_volume_name: ollama_ollama - open_webui_volume_name: ollama_open_webui + open_webui_volume_name: ollama_open-webui webui_secret_key: "vk4HCy3FnlF0fqRT8MClJSGVmEdsP2tK" # ← move to ansible-vault in production! tasks: @@ -26,7 +26,6 @@ state: started restart_policy: unless-stopped pull: true - tty: true published_ports: - "{{ ollama_port }}:11434" volumes: @@ -36,11 +35,6 @@ count: -1 # -1 = all GPUs (or use device_ids: ['0', '1'] for specific) capabilities: - - gpu # nested list as per docs - comparisons: - image: strict - env: strict - volumes: strict - # container_default_behavior: no_defaults # optional, modern default register: ollama_deploy - name: Deploy Open WebUI container diff --git a/inventory.ini b/inventory.ini new file mode 100644 index 0000000..aa5536d --- /dev/null +++ b/inventory.ini @@ -0,0 +1,2 @@ +[all] +llm-server ansible_host=spark \ No newline at end of file