mirror of
https://github.com/status-im/infra-nimbus.git
synced 2025-01-19 02:01:17 +00:00
distribute-validators: create container folder if missing
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
d7930a8437
commit
c6c7159e94
@ -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
|
- name: Stop container if running
|
||||||
command: docker-compose stop
|
command: docker-compose stop
|
||||||
args:
|
args:
|
||||||
chdir: '/docker/{{ dist_validators_cont_name }}'
|
chdir: '/docker/{{ dist_validators_cont_name }}'
|
||||||
#ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: Remove validators/secrets folders
|
- name: Remove validators/secrets folders
|
||||||
file:
|
file:
|
||||||
@ -57,4 +65,4 @@
|
|||||||
command: docker-compose start
|
command: docker-compose start
|
||||||
args:
|
args:
|
||||||
chdir: '/docker/{{ dist_validators_cont_name }}'
|
chdir: '/docker/{{ dist_validators_cont_name }}'
|
||||||
#ignore_errors: true
|
ignore_errors: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user