asxpio-services moves to NixOS (branch nix). Without this, the next deploy from main would apply the Debian roles to it. Take it out of every play: services_servers is empty, and the host stays in the inventory only so that ops's roles can still read its addresses and public IP. The xmpp_cert_sync tasks that set up the receiving end on services through delegate_to now run only while services is managed here; on NixOS that end is part of its configuration. A dry run of site.yaml against production with this change: ops ok=62 changed=0, every services play skipped. Assisted-by: Claude:opus-5-5
29 lines
964 B
YAML
29 lines
964 B
YAML
---
|
|
# Inventory for the Forgejo Actions runner. Jobs run in containers on
|
|
# asxpio-services, so asxpio-ops is reached over the VPC. The services
|
|
# host itself is reached through asxpio-ops: a container talking to its
|
|
# own host arrives from a Docker bridge address, which sshd and the
|
|
# firewall both refuse.
|
|
|
|
all:
|
|
vars:
|
|
ansible_user: deploy
|
|
ansible_python_interpreter: /usr/bin/python3
|
|
|
|
children:
|
|
asxpio:
|
|
children:
|
|
ops_servers:
|
|
hosts:
|
|
asxpio-ops:
|
|
ansible_host: "{{ vpc_ip }}"
|
|
# Empty: asxpio-services runs NixOS (nixos/ on branch nix) and is
|
|
# no longer managed here
|
|
services_servers: {}
|
|
# Outside every play; listed only so that ops's roles can still read
|
|
# its variables (addresses, public IP)
|
|
nixos:
|
|
hosts:
|
|
asxpio-services:
|
|
ansible_host: "{{ vpc_ip }}"
|
|
ansible_ssh_common_args: "-o ProxyJump=deploy@{{ asxpio_ops_vpc_ip }}"
|