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 going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked as resolved and limited conversation to collaborators
May 17, 2021
This issue was closed.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Overview of the Issue
Using multi-line arguments in
extra_arguments
does not work.Reproduction Steps
I have the following Ansible provisioner block:
When the
--extra-vars
arguments are arranged as a single line, all works as expected:When I arrange the
--extra-vars
as multi-line (valid json syntax), Ansible rejects the command and the script fails to run:Interestingly... the terminal output shows the same input command in both forms. However the second is rejected.
First output (with single line arguments):
Second output (with multi-line arguments):
They appear identical, but second throws a non-zero exit with Ansible complaining that the arguments were not correct.
Packer version
1.6.6
Simplified Packer Buildfile
https://gist.github.com/npearson72/a363b559a72f703905a643d4d4ae0450
Operating system and Environment details
MacOS 11.1
ansible 2.10.3
Log Fragments and crash.log files
https://gist.github.com/npearson72/b998db9cac3af5a7b1b72692f30b1e3d
The text was updated successfully, but these errors were encountered: