mirror of
https://github.com/luzifer-ansible/docker-compose.git
synced 2024-11-08 13:39:59 +00:00
22 lines
512 B
YAML
22 lines
512 B
YAML
---
|
|
|
|
- name: Install wrapper script
|
|
copy:
|
|
content: |
|
|
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
exec docker run --rm -i \
|
|
-v "/var/run/docker.sock:/var/run/docker.sock" \
|
|
-v "/etc/docker-compose:/etc/docker-compose:ro" \
|
|
luzifer/docker-compose \
|
|
"$@"
|
|
dest: /usr/local/bin/docker-compose
|
|
group: root
|
|
mode: '0755'
|
|
owner: root
|
|
register: docker_compose
|
|
|
|
- set_fact: docker_compose_binary_path="/usr/local/bin/docker-compose"
|
|
|
|
...
|