2019-04-26 09:54:14 +00:00
|
|
|
---
|
2021-03-25 11:16:43 +00:00
|
|
|
- name: Geth | Create compose file
|
|
|
|
template:
|
|
|
|
src: 'docker-compose.yml.j2'
|
|
|
|
dest: '{{ geth_compose_path }}'
|
|
|
|
owner: 'dockremap'
|
|
|
|
group: 'docker'
|
|
|
|
mode: 0640
|
|
|
|
|
|
|
|
# Take into account additional docker-compose.yml files.
|
|
|
|
- name: Find all Docker Compose files
|
|
|
|
find:
|
|
|
|
paths: '{{ geth_service_path }}'
|
|
|
|
patterns: 'docker-compose*.yml'
|
|
|
|
recurse: false
|
|
|
|
register: geth_all_compose
|
|
|
|
|
|
|
|
- name: Geth | Create containers
|
|
|
|
docker_compose:
|
|
|
|
project_src: '{{ geth_service_path }}'
|
|
|
|
files: '{{ geth_all_compose.files | map(attribute="path") | list }}'
|
|
|
|
state: '{{ compose_state }}'
|
|
|
|
restarted: '{{ compose_restart }}'
|
|
|
|
recreate: '{{ compose_recreate | default("smart") }}'
|
2019-04-26 09:54:14 +00:00
|
|
|
pull: true
|
2021-03-25 11:16:43 +00:00
|
|
|
build: false
|