semaphore/inventory/hosts.yml

27 lines
905 B
YAML

# Semaphore deployment inventory
# Reached over the NetBird mesh (Semaphore LXC .99 is on the mesh).
#
# Two connection styles:
# - bootstrap.yml connects as root (ansible_user=root) using ANSIBLE_BECOME_ROOT_PASS
# - post-bootstrap playbooks connect as the `ansible` user via the deploy SSH key
#
# Semaphore injects the SSH private key (SSH_PRIVATE_KEY) and passwords from Infisical.
all:
vars:
ansible_python_interpreter: /usr/bin/python3
children:
vps:
hosts:
racknerd1:
ansible_host: 100.96.198.46 # mesh IP (public: 172.245.72.108)
racknerd2:
ansible_host: 100.96.217.250
racknerd3:
ansible_host: 67.215.255.203
vars:
# default connection user AFTER bootstrap; override to root for bootstrap.yml
ansible_user: "{{ connect_user | default('ansible') }}"
dashboards:
hosts:
racknerd1: