split long string
This commit is contained in:
parent
1088fefdb2
commit
5f858738bc
1 changed files with 13 additions and 1 deletions
14
main.tf
14
main.tf
|
@ -18,11 +18,23 @@ provider "libvirt" {
|
||||||
uri = "qemu+ssh://root@atlas.lan/system"
|
uri = "qemu+ssh://root@atlas.lan/system"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
locals {
|
||||||
|
ansible_command = join(" ", [
|
||||||
|
"ANSIBLE_ROLES_PATH=roles",
|
||||||
|
"ANSIBLE_HOST_KEY_CHECKING=False",
|
||||||
|
"ANSIBLE_VAULT_PASSWORD_FILE=util/secret-service-client.sh",
|
||||||
|
"ansible-playbook",
|
||||||
|
"-u root",
|
||||||
|
"-i '192.168.30.7,'",
|
||||||
|
"hermes.yml"
|
||||||
|
])
|
||||||
|
}
|
||||||
|
|
||||||
module "vm" {
|
module "vm" {
|
||||||
source = "git::https://git.pim.kunis.nl/home/tf-modules.git//debian"
|
source = "git::https://git.pim.kunis.nl/home/tf-modules.git//debian"
|
||||||
name = "hermes"
|
name = "hermes"
|
||||||
use_host_cert = false
|
use_host_cert = false
|
||||||
fixed_address = "192.168.30.7/24"
|
fixed_address = "192.168.30.7/24"
|
||||||
ansible_command = "ANSIBLE_ROLES_PATH=roles ANSIBLE_HOST_KEY_CHECKING=False ANSIBLE_VAULT_PASSWORD_FILE=util/secret-service-client.sh ansible-playbook -u root -i '192.168.30.7,' hermes.yml"
|
ansible_command = local.ansible_command
|
||||||
mac = "CA:FE:C0:FF:EE:07"
|
mac = "CA:FE:C0:FF:EE:07"
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue