Terraform Ansbile Module
  • HCL 85.7%
  • JavaScript 7.4%
  • Makefile 6.9%
Find a file
2026-05-05 11:09:31 +00:00
.forgejo/workflows chore(docker): update git.bueraner.de/murdoc/docker-semantic-release:latest docker digest to 016f6bc 2026-05-04 09:06:58 +00:00
.editorconfig chore: update .editorconfig 2025-07-30 22:35:17 +02:00
.gitignore feat: add terraform ansible module 2025-07-30 22:18:46 +02:00
.markdownlint.json chore: disable markdown lint check MD060 2026-01-06 21:40:46 +01:00
.pre-commit-config.yaml chore: sync repo configuration 2026-05-04 09:12:05 +02:00
AGENTS.md docs(agents): condense repo-specific agent guidance 2026-04-12 10:58:09 +02:00
CHANGELOG.md chore(release): 1.4.2 [skip ci] 2026-04-24 17:53:15 +02:00
main.tf fix(ansible): write inventory inside playbook repo 2026-04-24 17:49:59 +02:00
Makefile chore: fix terraform-docs command 2026-02-19 23:20:26 +01:00
providers.tf feat: add terraform ansible module 2025-07-30 22:18:46 +02:00
README.md feat(ansible): make playbook verbosity configurable 2026-04-20 23:41:47 +02:00
release.config.mjs feat: add semantic release versioning config 2025-07-30 22:27:19 +02:00
renovate.json feat: add postUpgradeTasks 2026-02-19 23:18:11 +01:00
variables.tf feat(ansible): make playbook verbosity configurable 2026-04-20 23:41:47 +02:00

Requirements

Name Version
terraform >= 1.10.2
external >= 2.0.0
local ~> 2.1
null ~> 3.2

Providers

Name Version
external 2.3.5
local 2.8.0
null 3.2.4

Modules

No modules.

Resources

Name Type
local_file.ansible_inventory resource
null_resource.ansible_git resource
null_resource.ansible_setup resource
null_resource.ansible_trigger resource
null_resource.wait_for_ssh resource
external_external.git_hash data source

Inputs

Name Description Type Default Required
ansible_env_vars Map of environment variables for the Ansible playbook map(string) {} no
ansible_inventory_file Ansible inventory file (default: tf-ansible-inventory) string "tf-ansible-inventory" no
ansible_playbook n/a string "site.yml" no
ansible_playbook_path Ansible playbook path (default: /tmp/ansible-playbooks) string "/tmp/ansible-playbooks" no
ansible_repo Git repository URL for the Ansible repo string n/a yes
ansible_verbosity Ansible verbosity level from 0 to 4; 0 disables -v flags number 0 no
override_vm_state Hard override for all VM states, used by start/stop targets string null no
proxmox_vm_dependency Dependency on created Proxmox VMs (vm_ids or module) any n/a yes
proxmox_vms Map of Proxmox VMs with tags and network data
map(object({
ciuser = string
cidr = string
tags = list(string)
ansible_playbook_tag = optional(string, "update")
vm_state = optional(string)
}))
n/a yes
vm_state Default state of the VM(s) (running, stopped, absent) string n/a yes

Outputs

No outputs.