-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker environment mangled #64
Comments
Can you show me an example of what the output looks like on your end and what you would expect to see instead? |
Got:
Expected (and got this by reversing the change):
|
variable:
|
I'm able to confirm that here and funny enough systemd is ok with quote mismatches so it didn't prevent the Docker daemon from starting up. I just re-worked the template to generate multiple environment variables to be more clear by outputting each one on their own line and to avoid any quote shenanigans. Can you double confirm it works for you by changing # {{ ansible_managed }}
[Service]
{% for env in docker__daemon_environment %}
Environment="{{ env }}"
{% endfor %} It should produce this output:
With an input of: docker__daemon_environment:
- "HTTP_PROXY=http://proxy.a.com:80"
- "HTTPS_PROXY=https://proxy.a.com:443" |
It works! |
Cool. Yeah if the quotes were lined up it should have worked on 1 line in the end. I just pushed v1.9.1 to the Galaxy with this fix and here's the commit: beaaccb |
This change causes my runs to miss the first and last quote.
02d6353#diff-aeddd16345c3d33656d19cf55fceff3d
The text was updated successfully, but these errors were encountered: