diff --git a/openstack/nodeimage.pkr.hcl b/openstack/nodeimage.pkr.hcl
index 5cc075a38b0385988c1b1a1876c04712863d6d53..576057bf364cf2f7b8d75968e0285ecc70bdc8c7 100644
--- a/openstack/nodeimage.pkr.hcl
+++ b/openstack/nodeimage.pkr.hcl
@@ -17,9 +17,6 @@ source "openstack" "image" {
   security_groups = var.security_groups
 
   ssh_username = var.ssh_username
-  ssh_keypair_name = var.ssh_keypair_name
-  ssh_private_key_file = var.ssh_private_key_file
-
 }
 
 build {
@@ -34,14 +31,12 @@ build {
   }
   provisioner "ansible" {
     use_proxy =  false
-    ssh_authorized_key_file = "/home/ubuntu/.ssh/id_rsa.pub"
     ansible_env_vars = ["ANSIBLE_HOST_KEY_CHECKING=False"]
     playbook_file = "../CRI_XCBC/ood-packer.yaml"
     roles_path = "./ansible/roles"
     inventory_file = "../CRI_XCBC/hosts"
     extra_arguments = [
       "--extra-vars", "root_ssh_key='${var.root_ssh_key}'",
-      "--private-key=${var.ssh_private_key_file}",
       "--user=centos",
       #"-vvvv"
     ]
diff --git a/openstack/variables.pkr.hcl b/openstack/variables.pkr.hcl
index 175ca17edf8b952ec5a041cc8209720473d2ac8d..5082805e08faa68325e6cd7b5ec18bb89467c623 100644
--- a/openstack/variables.pkr.hcl
+++ b/openstack/variables.pkr.hcl
@@ -76,13 +76,3 @@ variable "ssh_username" {
   default = "centos"
   description = "The default username to use for SSH"
 }
-
-variable "ssh_keypair_name" {
-  type = string
-  description = "SSH keypair to use from OS project"
-}
-
-variable "ssh_private_key_file" {
-  type = string
-  description = "Private key file"
-}