ansible-inventory
gendall/ansible-inventory/local
Terraform module to create an Ansible Inventory file from a list of server IPs
Local Ansible Inventory A Terraform module that will render groups of server IP addresses into an Ansible inventory file and output it to the local filesystem at a specified location. The module will also take arbitrary secrets (certificates, tokens, keys, etc.) and write them to files in a subdirectory of the output path. Usage ``hcl provider "local" { version = "~> 1.3" } module "inventory_production" { source = "gendall/ansible-inventory/local" servers = { manager = ["1.2.3.4"] worker = ["11.22.33.44", "55.66.77.88"] } secrets = { tls_key = "-----BEGIN RSA PRIVATE KEY----- MIIEow..." tls_cert = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD..." } output = "inventory/production" } `` Deployment This role will be automatically built and deployed to Terraform Registry when a Semver tag is pushed
| Name | Type | Description | Default |
|---|---|---|---|
| output | string | The path to use when saving the rendered inventory file. | required |
| servers | map | A map of inventory group names to IP addresses. | {} |
| secrets | map | A map of secret key value pairs to be injected as Docker secrets. | {} |
| hostname | string | A fully qualified domain name that will be passed to the Docker Swarm as the env | "" |
Azure landing zones Terraform module
Terraform supermodule for the Terraform platform engineering for Azure
Terraform module to deploy landing zone subscriptions (and much more) in Azure
Terraform Module to define a consistent naming convention by (namespace, stage,