UFW 默认 deny incoming + 仅允许 SSH,导致 certbot standalone 的 80 端口 ACME 验证被防火墙阻断。
Goals:
Non-Goals:
allowed_ports 机制在 base role 执行时生效,trojan role 在后执行时无法通过该机制追加端口。直接在 trojan role 中使用 UFW 模块允许 80 端口是最简洁的方案。group_vars/all.yml 中增加 allowed_ports: [80] — 但这会为所有服务器(包括不部署 Trojan 的服务器)开放 80 端口,不符合最小权限原则。