You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use the packer ansible provisioner with some additional ssh arguments to debug some connection issues I was having, specifically I was trying to use these options:
Overview of the Issue
I'm trying to use the packer ansible provisioner with some additional ssh arguments to debug some connection issues I was having, specifically I was trying to use these options:
My first attempt at this was to use this for
ansible_ssh_extra_args
:Unfortunately what I noticed is this led to duplicate options in the ansible command (added -vvv for additional detail):
note in the SSH exec that it has duplicate valuse for
-o ControlMaster
(auto/no) and-o ControlPersist
(60s/none).After I noticed that I attempted to split each option thinking it might merge the options better:
Unfortunately this led to a completely bizarre error:
I believe this is related to this commit:
205faa4
Reproduction Steps
Use multiple -o options for
ansible_ssh_extra_args
each split as a separate list item - for example:Plugin and Packer version
Simplified Packer Buildfile
Anything with the
ansible_ssh_extra_args
as shown above, if needed let me know and I will try to make something.Operating system and Environment details
AmazonLinux AL2023 running packer through GitHub Actions self-hosted runner.
Log Fragments and crash.log files
embedded in description above, can provide more details if necessary but do not think needed for this case.
The text was updated successfully, but these errors were encountered: