Skip to content
Snippets Groups Projects

Fix packer ssh communicator errors.

3 files
+ 15
0
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -26,8 +26,13 @@ build {
@@ -26,8 +26,13 @@ build {
user = var.ssh_username
user = var.ssh_username
groups = ["base"]
groups = ["base"]
playbook_file = "./ansible/base.yml"
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"
roles_path = "./ansible/roles"
extra_arguments = [
extra_arguments = [
 
"--scp-extra-args", "'-O'",
"--extra-vars", "root_ssh_key='${var.root_ssh_key}'"
"--extra-vars", "root_ssh_key='${var.root_ssh_key}'"
]
]
}
}
Loading