---

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

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

- tags:
    - setup-all
    - setup-pantalaimon
  block:
    - when: not matrix_pantalaimon_enabled | bool
      ansible.builtin.include_tasks: "{{ role_path }}/tasks/uninstall.yml"