diff --git a/openstack-compute/nodeimage.pkr.hcl b/openstack-compute/nodeimage.pkr.hcl index c185672784445a14de3817acb8a67f1b0b7e70cf..f2b007c87503c0ccf89235bb63f7ea006afcc4c7 100644 --- a/openstack-compute/nodeimage.pkr.hcl +++ b/openstack-compute/nodeimage.pkr.hcl @@ -26,15 +26,12 @@ build { user = var.ssh_username groups = ["compute"] playbook_file = "./ansible/compute.yml" - ansible_env_vars = [ - "ANSIBLE_SSH_ARGS='-oHostKeyAlgorithms=+ssh-rsa -oPubkeyAcceptedKeyTypes=ssh-rsa'", - "ANSIBLE_HOST_KEY_CHECKING=False" - ] roles_path = "./ansible/roles" extra_arguments = [ "--extra-vars", "root_ssh_key='${var.root_ssh_key}'" ] } + provisioner "ansible" { user = var.ssh_username use_proxy = false diff --git a/openstack-gpu/nodeimage.pkr.hcl b/openstack-gpu/nodeimage.pkr.hcl index e200b0a8f4942318f30fe3853ed897793fa21773..eedd1a3bb89ada929f56a1886429924d2f7a932c 100644 --- a/openstack-gpu/nodeimage.pkr.hcl +++ b/openstack-gpu/nodeimage.pkr.hcl @@ -27,10 +27,6 @@ build { user = var.ssh_username groups = ["gpu"] playbook_file = "./ansible/gpu.yml" - ansible_env_vars = [ - "ANSIBLE_SSH_ARGS='-oHostKeyAlgorithms=+ssh-rsa -oPubkeyAcceptedKeyTypes=ssh-rsa'", - "ANSIBLE_HOST_KEY_CHECKING=False" - ] roles_path = "./ansible/roles" extra_arguments = [ "--extra-vars", "root_ssh_key='${var.root_ssh_key}'" diff --git a/openstack/nodeimage.pkr.hcl b/openstack/nodeimage.pkr.hcl index 539ec77f228a8a2ffdfa54f2da9c17c784edaa5b..509ae3cde0684fd1a02a913ae760d8ae737c419e 100644 --- a/openstack/nodeimage.pkr.hcl +++ b/openstack/nodeimage.pkr.hcl @@ -26,10 +26,6 @@ build { user = var.ssh_username groups = ["base"] playbook_file = "./ansible/base.yml" - ansible_env_vars = [ - "ANSIBLE_SSH_ARGS='-oHostKeyAlgorithms=+ssh-rsa -oPubkeyAcceptedKeyTypes=ssh-rsa'", - "ANSIBLE_HOST_KEY_CHECKING=False" - ] roles_path = "./ansible/roles" extra_arguments = [ "--extra-vars", "root_ssh_key='${var.root_ssh_key}'"