capabilities.work

Add a host to an Ansible inventory

One step with Harness. We can help you get access.

Get something done

Add a host to an Ansible inventory

with Harness
Works with AI assistants

Use Harness: its Harness Ansible API lets you add a host to an Ansible inventory in a single step (POST /iacm/api/orgs/{org}/projects/{project}/ansible/inventory/{identifier}/hosts). Harness also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.

  • How do I add a new host address to an existing inventory?
  • Can I assign groups and vars when adding a host to an inventory?
Say it to your AI assistant
  • Add host {host_address} to inventory {identifier} in {org}/{project}.
  • Add host {host_address} to inventory {identifier} in groups {groups} in {org}/{project}.
For your developer

POST /iacm/api/orgs/{org}/projects/{project}/ansible/inventory/{identifier}/hosts in Harness Ansible API. Full spec on APIs.io.