diff --git a/ansible/roles/distribute-validators/defaults/main.yml b/ansible/roles/distribute-validators/defaults/main.yml index 81fb392..a00d9df 100644 --- a/ansible/roles/distribute-validators/defaults/main.yml +++ b/ansible/roles/distribute-validators/defaults/main.yml @@ -13,4 +13,4 @@ dist_validators_layout: {} # 'node-01': { start: 0, end: 1023 } # 'node-01': { start: 1024, end: 2047 } -dist_validators_range: '{{ dist_validators_layout[hostname] }}' +dist_validators_range: '{{ dist_validators_layout[hostname] | mandatory }}' diff --git a/ansible/roles/distribute-validators/tasks/main.yml b/ansible/roles/distribute-validators/tasks/main.yml index dbd90d5..8b05ad3 100644 --- a/ansible/roles/distribute-validators/tasks/main.yml +++ b/ansible/roles/distribute-validators/tasks/main.yml @@ -1,13 +1,13 @@ ---- -#- name: Clone repo with secrets/validators -# git: -# repo: '{{ dist_validators_repo_url }}' -# dest: '{{ dist_validators_repo_path }}' -# version: '{{ dist_validators_repo_rev }}' -# update: true -# force: true -# accept_hostkey: true -# become_user: '{{ dist_validators_repo_user }}' +--- +- name: Clone repo with secrets/validators + git: + repo: '{{ dist_validators_repo_url }}' + dest: '{{ dist_validators_repo_path }}' + version: '{{ dist_validators_repo_rev }}' + update: true + force: true + accept_hostkey: true + become_user: '{{ dist_validators_repo_user }}' - name: Find all validators find: