sync-inventory

Convert Terraform JSON inventory to Ansible YAML and distribute to repositories.

3|1|Updated Jan 1, 2026
One-click install
npx skills add https://github.com/JacobPEvans/claude-code-plugins --skill sync-inventory
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sync-inventory
Source: https://github.com/JacobPEvans/claude-code-plugins/tree/main/infra-orchestration/skills/sync-inventory
Command: npx skills add https://github.com/JacobPEvans/claude-code-plugins --skill sync-inventory

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the critical process of keeping your infrastructure's Ansible inventory up-to-date with the latest Terraform outputs, preventing configuration drift and deployment errors.

Core Features & Use Cases

  • Automated Inventory Export: Extracts infrastructure details from Terraform/Terragrunt outputs.
  • Format Transformation: Converts raw JSON output into a universally compatible Ansible inventory format.
  • Cross-Repository Distribution: Pushes the generated inventory to multiple, designated Ansible repositories.
  • Validation: Includes a step to verify the integrity and correctness of the distributed inventory.
  • Use Case: After deploying new infrastructure with Terraform, this Skill ensures your Ansible playbooks can immediately target and manage the newly provisioned resources without manual intervention.

Quick Start

Run the sync-inventory skill to export Terraform outputs and update Ansible repositories.

Frequently Asked Questions about sync-inventory

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I sync Terraform outputs to an Ansible inventory?

You can sync Terraform outputs to an Ansible inventory by automating the extraction of infrastructure details, converting the JSON output into Ansible YAML format, and distributing the updated inventory directly to your Ansible repositories.

Why does my Ansible inventory drift after deploying infrastructure with Terraform?

Ansible inventory drift happens when Terraform provisions new resources but does not automatically update Ansible's configuration records. Automating the synchronization from Terraform outputs prevents this drift and ensures accurate deployment targeting.

Can I distribute a generated Ansible inventory to multiple repositories?

Yes, you can distribute a generated Ansible inventory to multiple repositories. The synchronization process pushes the transformed YAML inventory to designated Ansible repositories to ensure consistent infrastructure management across projects.

Does the inventory synchronization process include validation?

Yes, the inventory synchronization process includes validation. It verifies the integrity and correctness of the generated Ansible inventory using the ansible-inventory tool before completing the distribution to your repositories.

How do I convert Terraform JSON output to Ansible YAML format?

You can convert Terraform JSON output to Ansible YAML format by running an automated synchronization process. This extracts the raw JSON infrastructure data from Terraform and transforms it into a universally compatible Ansible inventory format.