distribute-validators: create container folder if missing

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2021-05-11 10:41:52 +02:00
parent d7930a8437
commit c6c7159e94
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020

View File

@ -1,9 +1,17 @@
---
- name: Create container folder if absent
file:
path: '/docker/{{ dist_validators_cont_name }}'
state: 'directory'
owner: dockremap
group: docker
mode: 0750
- name: Stop container if running
command: docker-compose stop
args:
chdir: '/docker/{{ dist_validators_cont_name }}'
#ignore_errors: true
ignore_errors: true
- name: Remove validators/secrets folders
file:
@ -57,4 +65,4 @@
command: docker-compose start
args:
chdir: '/docker/{{ dist_validators_cont_name }}'
#ignore_errors: true
ignore_errors: true