16 lines
594 B
HCL
16 lines
594 B
HCL
# "timestamp" template function replacement
|
|
locals { timestamp = regex_replace(timestamp(), "[- TZ:]", "") }
|
|
|
|
build {
|
|
sources = ["source.qemu.gentoo", "source.qemu.debian"]
|
|
|
|
provisioner "ansible" {
|
|
ansible_env_vars = ["ANSIBLE_CONFIG=/packer/ansible/ansible.cfg"]
|
|
extra_arguments = ["--extra-vars", "${var.ansible_extra_vars} ansible_python_interpreter=/usr/bin/python3", "-vv"]
|
|
groups = ["all"]
|
|
playbook_file = "${var.ansible_provisioning_playbook}"
|
|
user = "${var.ssh_username}"
|
|
galaxy_file = "/packer/ansible/requirements.yml"
|
|
}
|
|
}
|