support multiple docker-compose*.yml files
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
3f6ef25470
commit
37f8a3ab06
|
@ -7,8 +7,17 @@
|
||||||
group: docker
|
group: docker
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
||||||
|
# Take into account additional docker-compose.yml files.
|
||||||
|
- name: Find all Docker Compose files
|
||||||
|
find:
|
||||||
|
paths: '{{ beacon_node_cont_vol }}'
|
||||||
|
patterns: 'docker-compose*.yml'
|
||||||
|
recurse: false
|
||||||
|
register: all_compose_files
|
||||||
|
|
||||||
- name: 'Create container: {{ beacon_node_cont_name }}'
|
- name: 'Create container: {{ beacon_node_cont_name }}'
|
||||||
docker_compose:
|
docker_compose:
|
||||||
project_src: '{{ beacon_node_cont_vol }}'
|
project_src: '{{ beacon_node_cont_vol }}'
|
||||||
|
files: '{{ all_compose_files.files | map(attribute="path") | list }}'
|
||||||
recreate: '{{ compose_recreate | ternary("always", "smart") }}'
|
recreate: '{{ compose_recreate | ternary("always", "smart") }}'
|
||||||
pull: true
|
pull: true
|
||||||
|
|
Loading…
Reference in New Issue