2019-11-26 14:17:24 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Install wrapper script
|
|
|
|
copy:
|
|
|
|
content: |
|
|
|
|
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
|
2019-11-26 14:24:33 +00:00
|
|
|
exec docker run --rm -i \
|
2019-11-26 14:17:24 +00:00
|
|
|
-v "/var/run/docker.sock:/var/run/docker.sock" \
|
2019-11-26 14:33:53 +00:00
|
|
|
-v "${HOME}/.docker:/root/.docker:ro" \
|
2019-11-26 14:30:16 +00:00
|
|
|
-v "$(pwd):$(pwd):ro" \
|
|
|
|
-w "$(pwd)" \
|
2019-11-26 14:17:24 +00:00
|
|
|
luzifer/docker-compose \
|
|
|
|
"$@"
|
|
|
|
dest: /usr/local/bin/docker-compose
|
|
|
|
group: root
|
|
|
|
mode: '0755'
|
|
|
|
owner: root
|
2019-11-26 14:21:07 +00:00
|
|
|
register: docker_compose
|
2019-11-26 14:17:24 +00:00
|
|
|
|
|
|
|
- set_fact: docker_compose_binary_path="/usr/local/bin/docker-compose"
|
|
|
|
|
|
|
|
...
|