35 lines
531 B
HCL
35 lines
531 B
HCL
|
|
variable "payload" {
|
|
description = "Instance description"
|
|
type = any
|
|
default = {}
|
|
}
|
|
|
|
|
|
resource "ansible_host" "example2" {
|
|
inventory_hostname = "www.example.com"
|
|
groups = ["web"]
|
|
vars = {
|
|
foo = "bar"
|
|
}
|
|
}
|
|
|
|
|
|
resource "ansible_host" "example" {
|
|
inventory_hostname = "example.com"
|
|
groups = ["web"]
|
|
vars = {
|
|
ansible_user = "admin"
|
|
}
|
|
}
|
|
|
|
resource "ansible_group" "web" {
|
|
inventory_group_name = "web"
|
|
children = ["foo", "bar", "baz"]
|
|
vars = {
|
|
foo = "bar"
|
|
bar = 2
|
|
}
|
|
}
|
|
|