Comments (4)
@nywilken Hello Wilken! Can you please take a look at this; would appreciate any feedback.
Following the suggestions this issue and in this issue, currently getting around the failed handshake
error by passing in:
ansible_env_vars = [
"ANSIBLE_STDOUT_CALLBACK=debug",
"ANSIBLE_HOST_KEY_CHECKING=False",
"ANSIBLE_SSH_ARGS='-o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s'",
"ANSIBLE_NOCOLOR=True"
]
ansible_ssh_extra_args = [
"-o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa"
]
extra_arguments = [
"--scp-extra-args", "'-O'"
]
to the build but now running into another issue where none of the packages needed are being found (for example, one is able to apt install make
but provisioning via packer-plugin-ansible will return "package make not found").
from packer-plugin-ansible.
Got around issues reported by:
- switching plugins version to "1.0.1"
- switching to ubuntu 20.4
from packer-plugin-ansible.
Hi @msuzoagu,
Coming back to this, it looks like a similar issue as what's described in #69, where connection to the adapter/proxy for Ansible fails because of a SSH key mismatch.
I presume the Ansible/OpenSSH stack you're running banned RSA-SHA as authorised key type, hence the extra arguments you're passing to Ansible, but from what I can understand, this is not enough and the generated key cannot be used to authenticate anyway, hence the communication error.
Regarding my message on your other issue (on the Amazon plugin), since the target machine has a public IP, you can probably still fix it by adding use_proxy = false
on the Ansible configuration block, that way you won't have the adapter setup with the unsupported keys.
I'll continue looking into this problem from the angle described in #69.
from packer-plugin-ansible.
Closing as duplicate of hashicorp/packer#12416
from packer-plugin-ansible.
Related Issues (20)
- ansible provisioner fails with "failed to transfer file" HOT 4
- ansible-local provisioner installs galaxy roles to <staging dir>/galaxy_roles/ but does not add that to Ansible's role path HOT 4
- Options in ansible_ssh_extra_args not properly concatenated
- Error: "fail to handshake" with vagrant and qemu provider HOT 1
- Installing dnf packages causes connection loss HOT 1
- Error: unrecognized arguments: playbook.yml HOT 4
- Add support for host key algorithms other than ssh-rsa on local ssh proxy HOT 6
- Documentation typo HOT 1
- Setup module fails on azure VM build with no error HOT 1
- Can't use Ansible provisioner with just SSH username and password HOT 1
- ansible_env_vars are not set before version check
- `ansible_ssh_extra_args` not passing arguments to SSH correctly HOT 4
- Ansible provisioner doesn't honor winrm_use_ssl option from WinRM communicator HOT 6
- Build fails from RHEL 9.2 HOT 3
- ansible-local provisioner cannot set packer_http_addr properly when the variable is not implemented
- Ansible Provisionner auto-generated keys are blank (Linux) HOT 1
- Ansible incorrectly attempts connection to localhost (127.0.0.1) instead of host from packer inventory HOT 2
- packer execution time has increased by two/four times after updating the version from 1.1.4 to any higher version HOT 1
- ansible does not use ansible.builtin.include_vars in pre_tasks and use only roles:
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packer-plugin-ansible.