diff --git a/openstack-compute/nodeimage.pkr.hcl b/openstack-compute/nodeimage.pkr.hcl
index 95a847f653833a860920264d82c476f1a38b5b8c..c185672784445a14de3817acb8a67f1b0b7e70cf 100644
--- a/openstack-compute/nodeimage.pkr.hcl
+++ b/openstack-compute/nodeimage.pkr.hcl
@@ -23,6 +23,7 @@ build {
   sources = ["source.openstack.image"]
 
   provisioner "ansible" {
+    user = var.ssh_username
     groups = ["compute"]
     playbook_file = "./ansible/compute.yml"
     ansible_env_vars = [
@@ -35,6 +36,7 @@ build {
     ]
   }
   provisioner "ansible" {
+    user = var.ssh_username
     use_proxy =  false
     groups = ["compute"]
     playbook_file = "./CRI_XCBC/compute-packer.yaml"
diff --git a/openstack-gpu/nodeimage.pkr.hcl b/openstack-gpu/nodeimage.pkr.hcl
index a22751c5aa8b0607d717b3f1a7195a3702ada5e2..5011e7b8f38591ca709caf86ea81c12aee0760d0 100644
--- a/openstack-gpu/nodeimage.pkr.hcl
+++ b/openstack-gpu/nodeimage.pkr.hcl
@@ -19,6 +19,7 @@ build {
   sources = ["source.openstack.image"]
 
   provisioner "ansible" {
+    user = var.ssh_username
     groups = ["compute"]
     playbook_file = "./ansible/compute.yml"
     ansible_env_vars = [
@@ -33,6 +34,7 @@ build {
   }
 
   provisioner "ansible" {
+    user = var.ssh_username
     groups = ["gpu"]
     playbook_file = "./ansible/gpu.yml"
     ansible_env_vars = [
@@ -46,6 +48,7 @@ build {
   }
 
   provisioner "ansible" {
+    user = var.ssh_username
     use_proxy =  false
     groups = ["compute"]
     playbook_file = "./CRI_XCBC/compute-packer.yaml"