Skip to main content

opsmill.infrahub Ansible collection

Collection version 1.8.1

Collection overview​

The OpsMill Infrahub Ansible Collection provides is intend to help interact with Infrahub through Ansible.

This Ansible collection consists of a set of modules and plugins designed to work seamlessly with your existing infrastructure, enabling you to define and enforce the desired state of your infrastructure with ease.

Guides​

To begin using the OpsMill Infrahub Ansible Collection, please follow our step-by-step guides:

  • Installation Guide: Learn how to install the collection, including Python module and Ansible setup, as well as alternative installation options.
  • Dynamic Inventory Guide: Discover how to leverage the collection's dynamic inventory features to streamline your infrastructure management.
  • Query & Lookup Guide: Learn how to retrieve structured GraphQL data from Infrahub using Query and Lookup plugins.
  • Create, Update and Delete Nodes Guide: Learn how to create, update and delete nodes in Infrahub using GraphQL action plugin or the node module.
  • Manipulate Branch Guide: Learn how to manipulate Branch in Infrahub.

References​

Plugins​

These are the plugins in the opsmill.infrahub collection:

Modules​

  • node – Creates, Updates or Deletes a node in Infrahub
  • object_file_fetch – Fetch file content from a CoreFileObject node in Infrahub
  • branch – Creates, Updates or Deletes a branch in Infrahub
  • schema – Load, check, or export schemas in Infrahub
  • artifact_fetch – Fetch the content of an artifact from Infrahub
  • query_graphql – Queries and returns elements from Infrahub GraphQL API
  • artifact_generate – Trigger artifact regeneration in Infrahub

Inventory​

  • inventory – Infrahub inventory source (using GraphQL)

Lookup​

  • lookup – Queries and returns elements from Infrahub (using GraphQL)

Roles​

These are the roles in the opsmill.infrahub collection:

  • install – Install Infrahub