---

- tags:
    - reset-hookshot-encryption
  block:
    - when: matrix_hookshot_enabled | bool
      ansible.builtin.include_tasks: "{{ role_path }}/tasks/reset_encryption.yml"

- tags:
    - setup-all
    - setup-hookshot
    - setup-bridge-hookshot
    - install-all
    - install-hookshot
    - install-bridge-hookshot
  block:
    - when: matrix_hookshot_enabled | bool
      ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"

    - when: matrix_hookshot_enabled | bool
      ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"

- tags:
    - setup-all
    - setup-hookshot
    - setup-bridge-hookshot
  block:
    - when: not matrix_hookshot_enabled | bool
      ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
