Skip to content

Commit

Permalink
Remove trailing newline from docker options
Browse files Browse the repository at this point in the history
This is so that a long line can be broken using YAML line continuation
syntax, e.g.:

  docker_opts: >
    -H unix:https://
    -H IP:PORT
    --tls
    --tlscacert=...

(if not stripped, the newline will end up within the double-quotes)
  • Loading branch information
mphre committed Mar 6, 2015
1 parent 1396d09 commit e5f4679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@

- name: Set docker daemon options
copy:
content: "DOCKER_OPTS=\"{{ docker_opts }}\""
content: "DOCKER_OPTS=\"{{ docker_opts.rstrip('\n') }}\""
dest: /etc/default/docker
owner: root
group: root
Expand Down

0 comments on commit e5f4679

Please sign in to comment.