distribute-validators: fix adjusting permissions

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2020-11-12 12:09:20 +01:00
parent 64b7736d85
commit 890784ae1d
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 14 additions and 10 deletions

View File

@ -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