summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2022-03-25 15:46:40 +0100
committerJonathan Bauer2022-03-25 15:46:40 +0100
commit3fb4464769ffacd83575b2a76e9090f60b3d77d8 (patch)
treeb79064b0c11e558fccc57553d1d3d1f0e6e99069
parentdo not use backing file for now (diff)
downloadpacker-templates-3fb4464769ffacd83575b2a76e9090f60b3d77d8.tar.gz
packer-templates-3fb4464769ffacd83575b2a76e9090f60b3d77d8.tar.xz
packer-templates-3fb4464769ffacd83575b2a76e9090f60b3d77d8.zip
include ssh-rsa as key algo for ansible
-rw-r--r--ansible-provisioner.json5
1 files changed, 4 insertions, 1 deletions
diff --git a/ansible-provisioner.json b/ansible-provisioner.json
index 2a01b40..45cf496 100644
--- a/ansible-provisioner.json
+++ b/ansible-provisioner.json
@@ -46,6 +46,9 @@
"provisioners": [{
"type": "ansible",
"playbook_file": "{{ user `playbook` }}",
- "extra_arguments": "{{ user `extra_ansible_args` }}"
+ "extra_arguments": "{{ user `extra_ansible_args` }}",
+ "ansible_ssh_extra_args": [
+ "-oHostKeyAlgorithms=+ssh-rsa -oPubkeyAcceptedKeyTypes=+ssh-rsa"
+ ]
}]
}