Add playbooks to role os-linux-prep-default

This commit is contained in:
2024-09-21 22:58:54 +03:00
parent 8b85b73396
commit 36aa9106ea
34 changed files with 499 additions and 14 deletions

View File

@ -32,7 +32,7 @@ source "vsphere-iso" "debian-12-x64" {
host = var.vcenter_host
datastore = var.vcenter_datastore
folder = var.vcenter_folder
# convert_to_template = true
convert_to_template = true
// ****************
vm_name = var.vm_name
CPUs = var.vm_num_cpu
@ -85,4 +85,11 @@ build {
]
}
provisioner "shell-local" {
inline = [
"ansible-playbook ~/ansible/playbooks/os-linux-prep-default.yml -l packer-templ -e hosts_target=packer-templ -e ansible_host=${build.Host} -e connection_username=${var.connection_username} -e connection_ssh_private_key_file=${var.connection_ssh_private_key_file}"
]
}
}