agentleFS
dmzoneilldmzoneill/skills/ansible-configure-vm/SKILL.md

ansible-configure-vm

Skill2 starsChanged 19 days agoApache-2.0View on GitHub

Configure VMs with Ansible playbooks and ad-hoc commands. Run playbooks, install Galaxy roles, ad-hoc modules, inventory management, check mode. Use when configuring VMs or running Ansible against hosts.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    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. Very specific:

    If check_mode: ansible_playbook_check(playbook=playbook, inventory=inventory, limit=hosts, tags=tags)

    line 53

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Ansible Configure VM

Configure virtual machines using Ansible playbooks and ad-hoc commands.

Inputs

InputTypeDefaultPurpose
playbookstring""Path to Ansible playbook
inventorystring"inventory.yaml"Inventory file path
hostsstring"all"Target hosts or group pattern
tagsstring""Ansible tags to run
check_modeboolfalseDry-run (check) mode
install_requirementsboolfalseInstall Galaxy requirements first

Persona

Load infra persona (ansible, ssh tools).

Workflow

1. Bootstrap

  • persona_load("infra")
  • check_known_issues("ansible", "") — known Ansible issues

2. Environment Check

  • ansible_version() — Ansible version
  • ansible_config_dump() — configuration

3. Inventory

  • ansible_inventory_list(inventory=inventory) — list hosts
  • ansible_inventory_graph(inventory=inventory) — inventory graph
  • ansible_inventory_host(inventory=inventory, host=hosts) — host variables

4. Connectivity

  • ssh_test(host=hosts) — SSH connectivity
  • ansible_ping(host=hosts, inventory=inventory) — Ansible ping
  • ansible_setup(host=hosts, inventory=inventory) — gather facts

5. Galaxy (if install_requirements)

  • ansible_galaxy_list() — installed roles
  • ansible_galaxy_search(query=playbook) — search
  • ansible_galaxy_install(requirements="requirements.yaml") — install

6. Playbook Operations (if playbook provided)

  • ansible_playbook_list_tasks(playbook=playbook, inventory=inventory) — list tasks
  • ansible_playbook_list_tags(playbook=playbook, inventory=inventory) — list tags
  • If check_mode: ansible_playbook_check(playbook=playbook, inventory=inventory, limit=hosts, tags=tags)
  • Else: ansible_playbook_run(playbook=playbook, inventory=inventory, limit=hosts, tags=tags)

7. Ad-hoc (if no playbook)

  • ansible_command(host=hosts, inventory=inventory, command="hostname")
  • ansible_shell(host=hosts, inventory=inventory, command="uptime && free -h")

8. Error Handling

  • On "unreachable": learn_tool_fix("ansible_ping", "unreachable", "Host not reachable via SSH", "Check SSH and host is running")
  • On "permission denied": ensure SSH key authorized or become password
  • On "playbook not found": verify playbook path

9. Session Log

  • memory_session_log("Ansible configure VM", "playbook={playbook}, hosts={hosts}")

Related Skills

  • vm_lab_setup — create VMs first
  • manage_secrets — vault-encrypted vars

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.