Skip to content

Commit

Permalink
adding validation
Browse files Browse the repository at this point in the history
  • Loading branch information
parithosh committed Oct 31, 2023
1 parent 163eb34 commit 17b93d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions roles/teku/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
- name: Validate inputs
ansible.builtin.import_tasks: validations.yaml

- name: Setup teku
ansible.builtin.import_tasks: setup.yaml
when: not teku_cleanup
Expand Down
4 changes: 4 additions & 0 deletions roles/teku/tasks/validations.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- name: Check if consensus client supports blobber configuration
ansible.builtin.fail:
msg: "Error: Teku cannot run checkpoint sync if the initial-state flag is already defined"
when: "teku_checkpoint_sync_enabled and (teku_container_command_extra_args | default('') | regex_search('initial-state') != None)"

0 comments on commit 17b93d9

Please sign in to comment.