--- - name: Assert supported operating system ansible.builtin.assert: that: - ansible_os_family == "Debian" fail_msg: "This role supports Debian/Ubuntu targets only." - name: Assert required role variables ansible.builtin.assert: that: - gitvana_repo_url | length > 0 - gitvana_repo_version | length > 0 - gitvana_app_user | length > 0 - gitvana_app_group | length > 0 - gitvana_app_root | length > 0 - gitvana_service_name | length > 0 - gitvana_service_port | int > 0 - gitvana_service_port | int < 65536 - bun_version | length > 0 - bun_install_root | length > 0 - gitvana_run_mode in ["dev", "preview"] fail_msg: "One or more required variables are missing or invalid." - name: Map architecture for Bun release artifact ansible.builtin.set_fact: bun_arch_suffix: "{{ gitvana_bun_arch_map.get(ansible_architecture) }}" - name: Fail on unsupported architecture ansible.builtin.fail: msg: "Unsupported architecture for Bun install: {{ ansible_architecture }}" when: bun_arch_suffix is not defined or bun_arch_suffix | length == 0