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