agentleFS
ryanmacleanryanmaclean/skills/ollama-deploy/SKILL.md

ollama-deploy

Skill1 starsChanged 2 months agoMITView on GitHub

Deploy and manage Ollama LLM on fleet hosts. Use when user mentions ollama, LLM, AI model, or language model deployment.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 7 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill for deploying and managing Ollama (local LLM runtime) on fleet hosts.

    line 13
  2. Distinctive:

    Bash: - Run ollama commands, systemctl

    line 16
  3. Distinctive:

    Read: - Check configs, model availability

    line 20
  4. Distinctive:

    Write/Edit: - Create systemd units, configs

    line 21
  5. Distinctive:

    After installing Ollama binary, pull models:

    line 44
  6. Very specific:

    Fix: Run ollama pull as ubuntu user or directly without become_user

    line 75
  7. Distinctive:

    Audit first: Check if Ollama already installed

    line 87
  8. Distinctive:

    Extract & start: Use systemd

    line 89

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Ollama Deployment Skill

Overview

Use this skill for deploying and managing Ollama (local LLM runtime) on fleet hosts.

Tools Required

  • Bash - Run ollama commands, systemctl
  • SSH - Connect to hosts for direct access
  • WebFetch - Download Ollama binaries, check releases
  • Glob/Grep - Find existing Ollama installations
  • Read - Check configs, model availability
  • Write/Edit - Create systemd units, configs

Key Principles

1. Architecture Matters

  • Raspberry Pis: use ollama-linux-arm64.tgz
  • x86_64 hosts: use ollama-linux-amd64.tgz
  • Verify with: file /usr/local/bin/ollama

2. Staged Downloads for Large Files

Ollama binary is ~1.6GB. Download once locally, then distribute:

# Download to controller
curl -fsSL https://github.com/ollama/ollama/releases/download/v0.13.1/ollama-linux-arm64.tgz -o /tmp/ollama.tgz

# Distribute via Ansible copy (parallel, fast LAN)
ansible <hosts> -i inventory -b -m copy -a "src=/tmp/ollama.tgz dest=/tmp/ollama.tgz"

# Extract on hosts
ansible <hosts> -i inventory -b -m shell -a "tar -xzf /tmp/ollama.tgz -C /usr/local"

3. Models Need Separate Pull

After installing Ollama binary, pull models:

ansible <hosts> -i inventory -b -m shell -a "/usr/local/bin/ollama pull kimi-k2.5:cloud"

4. Use Systemd for Service Management

ansible <hosts> -i inventory -b -m systemd -a "name=ollama state=started enabled=yes"

Common Playbooks

Install Ollama

ansible-playbook -i inventory 02-ollama.yml

Check Status

ansible <hosts> -i inventory -m shell -a "/usr/local/bin/ollama list"
ansible <hosts> -i inventory -m systemd -a "name=ollama state=started"

Known Issues

Wrong Architecture

  • Problem: juju4.ollama role downloads AMD64 by default
  • Fix: Manually specify ARM64 URL in playbook

Model Download Fails

  • Problem: Permission errors when running ollama pull as _ollama user
  • Fix: Run ollama pull as ubuntu user or directly without become_user

Service Not Starting

  • Check: journalctl -u ollama -n 50
  • Verify binary: file /usr/local/bin/ollama

Reference Files

$HOME/rust-town/irclaw/ansible/02-ollama.yml

Usage

  1. Audit first: Check if Ollama already installed
  2. Stage download: Get binary once, distribute
  3. Extract & start: Use systemd
  4. Pull models: Pull required models (kimi-k2.5:cloud)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.