distribute-validators: fix adjusting permissions
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
64b7736d85
commit
890784ae1d
|
@ -57,13 +57,17 @@
|
||||||
{{ found_secrets[dist_validators_range["start"]:dist_validators_range["end"]] | join(" ") }} \
|
{{ found_secrets[dist_validators_range["start"]:dist_validators_range["end"]] | join(" ") }} \
|
||||||
'{{ dist_validators_data_path }}/secrets/'
|
'{{ dist_validators_data_path }}/secrets/'
|
||||||
|
|
||||||
- name: Adjust validators permissions
|
- name: Adjust validators dir permissions
|
||||||
file:
|
shell: chmod 0700 -R '{{ dist_validators_data_path }}/validators'
|
||||||
path: '{{ item }}'
|
args:
|
||||||
state: 'directory'
|
warn: false
|
||||||
owner: 'dockremap'
|
|
||||||
group: 'docker'
|
- name: Adjust validators file permissions
|
||||||
recurse: true
|
shell: find '{{ dist_validators_data_path }}/validators/' -type f -exec chmod 0600 {} \;
|
||||||
with_items:
|
args:
|
||||||
- '{{ dist_validators_data_path }}/validators'
|
warn: false
|
||||||
- '{{ dist_validators_data_path }}/secrets'
|
|
||||||
|
- name: Adjust secrets permissions
|
||||||
|
shell: chmod 0600 -R '{{ dist_validators_data_path }}/secrets'
|
||||||
|
args:
|
||||||
|
warn: false
|
||||||
|
|
Loading…
Reference in New Issue