From 2f6ab0ebd25380102acb09385a1d1469378c67c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iwan=20Cl=C3=A9ment?= Date: Wed, 19 Jan 2022 10:40:31 +0000 Subject: [PATCH] retry ansible provisioner --- data/QuickAndDirty/rockylinux.pkr.hcl | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/data/QuickAndDirty/rockylinux.pkr.hcl b/data/QuickAndDirty/rockylinux.pkr.hcl index 1fb696d..4b37f17 100644 --- a/data/QuickAndDirty/rockylinux.pkr.hcl +++ b/data/QuickAndDirty/rockylinux.pkr.hcl @@ -51,16 +51,16 @@ source "proxmox" "rocky" { build { sources = [ "source.proxmox.rocky" ] - #provisioner "ansible" { - # pause_before = "20s" - # ansible_env_vars= [ - # "ANSIBLE_HOST_KEY_CHECKING=False", - # "ANSIBLE_SSH_ARGS='-o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s'", - # "ANSIBLE_NOCOLOR=True" - # ] - # extra_arguments= [ - # "-e templating=true" - # ] - # playbook_file = "../Ansible/playbooks/SolvayLinuxServers.yaml" - #} + provisioner "ansible" { + pause_before = "20s" + ansible_env_vars= [ + "ANSIBLE_HOST_KEY_CHECKING=False", + "ANSIBLE_SSH_ARGS='-o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s'", + "ANSIBLE_NOCOLOR=True" + ] + extra_arguments= [ + "-e templating=true" + ] + playbook_file = "../Ansible/playbooks/SolvayLinuxServers.yaml" + } } \ No newline at end of file