--- - block: - when: roundcube_enabled | bool ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" - when: roundcube_enabled | bool ansible.builtin.include_tasks: "{{ role_path }}/tasks/install.yml" tags: - setup-all - setup-roundcube - install-all - install-roundcube - block: - when: not roundcube_enabled | bool ansible.builtin.include_tasks: "{{ role_path }}/tasks/uninstall.yml" tags: - setup-all - setup-roundcube