first commit

This commit is contained in:
Justine Pelletreau
2026-02-23 17:56:36 +01:00
commit 27bbe4b275
7 changed files with 738 additions and 0 deletions

24
main.tf Normal file
View File

@ -0,0 +1,24 @@
terraform {
required_providers {
ansible = {
version = "~> 1.3.0"
source = "ansible/ansible"
}
}
}
resource "ansible_host" "host" {
name = var.ansible_hostname
groups = ["thegroup"]
}
resource "ansible_group" "group" {
name = "thegroup"
children = [var.ansible_hostname]
}
resource "ansible_playbook" "playbook" {
playbook = var.ansible_playbook_path
name = var.ansible_hostname
replayable = true
}