Use nas-aux

+12 -3
inventory.yml
···
ansible_user: dietpi
ansible_host: dietpi.ayu-matrix.ts.net
ansible_python_interpreter: /usr/bin/python3
+
nas-aux:
+
ansible_user: jas
+
ansible_host: nas-aux.ayu-matrix.ts.net
+
ansible_python_interpreter: /usr/bin/python3
freebsd_servers:
hosts:
···
prom_servers:
hosts:
-
dietpi:
-
ansible_user: dietpi
-
ansible_host: dietpi.ayu-matrix.ts.net
+
nas-aux:
+
ansible_user: jas
+
ansible_host: nas-aux.ayu-matrix.ts.net
ansible_python_interpreter: /usr/bin/python3
prom_clients:
···
freebsd_servers:
remote_logging_clients:
+
hosts:
+
dietpi:
+
ansible_user: dietpi
+
ansible_host: dietpi.ayu-matrix.ts.net
+
ansible_python_interpreter: /usr/bin/python3
children:
rhel_servers:
freebsd_servers:
+2 -2
remote-logging-setup.yml
···
when: ansible_system == "Linux"
- name: Get remote logging server headnet IP address
-
ansible.builtin.shell: tailscale status | grep "dietpi" | awk '{print $1}'
+
ansible.builtin.shell: tailscale status | grep "nas-aux" | awk '{print $1}'
register: ctrl_headnet_ip_addr
changed_when: false
failed_when: ctrl_headnet_ip_addr.rc != 0
···
group: root
mode: 0644
block: |
-
# Forward to dietpi.hs.ms.dev ({{ctrl_headnet_ip_addr.stdout}})
+
# Forward to nas-aux.ayu-matrix.ts.net ({{ctrl_headnet_ip_addr.stdout}})
*.* action(type="omfwd" target="{{ctrl_headnet_ip_addr.stdout}}" port="514" protocol="tcp"
action.resumeRetryCount="100"
queue.type="linkedList" queue.size="10000")