2026-01-13 21:12:24 -08:00
|
|
|
---
|
|
|
|
|
- name: Configure indri
|
|
|
|
|
hosts: indri
|
2026-01-16 12:30:20 -08:00
|
|
|
|
|
|
|
|
# Fetch all 1Password credentials upfront to minimize prompts
|
|
|
|
|
# Each role also fetches its own credentials (with 'when: <var> is not defined')
|
|
|
|
|
# so they still work when running with --tags
|
|
|
|
|
# Tags ensure pre_tasks only run when relevant roles are included
|
|
|
|
|
pre_tasks:
|
|
|
|
|
- name: Fetch PostgreSQL superuser password
|
|
|
|
|
ansible.builtin.command:
|
|
|
|
|
cmd: op --vault vg6xf6vvfmoh5hqjjhlhbeoaie item get guxu3j7ajhjyey6xxl2ovsl2ui --fields password --reveal
|
|
|
|
|
delegate_to: localhost
|
|
|
|
|
register: _pg_superuser_pw
|
|
|
|
|
changed_when: false
|
|
|
|
|
no_log: true
|
2026-01-16 14:41:36 -08:00
|
|
|
check_mode: false
|
2026-01-16 12:30:20 -08:00
|
|
|
tags: [postgresql]
|
|
|
|
|
|
|
|
|
|
- name: Set PostgreSQL superuser password fact
|
|
|
|
|
ansible.builtin.set_fact:
|
2026-01-16 19:33:02 -08:00
|
|
|
postgresql_superuser_password: "{{ _pg_superuser_pw.stdout }}"
|
2026-01-16 12:30:20 -08:00
|
|
|
no_log: true
|
|
|
|
|
tags: [postgresql]
|
|
|
|
|
|
|
|
|
|
- name: Fetch PostgreSQL alloy user password
|
|
|
|
|
ansible.builtin.command:
|
|
|
|
|
cmd: op --vault vg6xf6vvfmoh5hqjjhlhbeoaie item get guxu3j7ajhjyey6xxl2ovsl2ui --fields alloy-user-pw --reveal
|
|
|
|
|
delegate_to: localhost
|
|
|
|
|
register: _pg_alloy_pw
|
|
|
|
|
changed_when: false
|
|
|
|
|
no_log: true
|
2026-01-16 14:41:36 -08:00
|
|
|
check_mode: false
|
2026-01-16 12:30:20 -08:00
|
|
|
tags: [alloy, postgresql]
|
|
|
|
|
|
|
|
|
|
- name: Set PostgreSQL alloy password fact
|
|
|
|
|
ansible.builtin.set_fact:
|
|
|
|
|
alloy_postgres_password: "{{ _pg_alloy_pw.stdout }}"
|
|
|
|
|
no_log: true
|
|
|
|
|
tags: [alloy, postgresql]
|
|
|
|
|
|
|
|
|
|
- name: Fetch miniflux database password
|
|
|
|
|
ansible.builtin.command:
|
|
|
|
|
cmd: op --vault vg6xf6vvfmoh5hqjjhlhbeoaie item get ns6wylqiuqgczpo7gq2akaxbti --fields password --reveal
|
|
|
|
|
delegate_to: localhost
|
|
|
|
|
register: _miniflux_db_pw
|
|
|
|
|
changed_when: false
|
|
|
|
|
no_log: true
|
2026-01-16 14:41:36 -08:00
|
|
|
check_mode: false
|
2026-01-16 12:30:20 -08:00
|
|
|
tags: [miniflux, postgresql]
|
|
|
|
|
|
|
|
|
|
- name: Set miniflux passwords fact
|
|
|
|
|
ansible.builtin.set_fact:
|
|
|
|
|
miniflux_db_password: "{{ _miniflux_db_pw.stdout }}"
|
|
|
|
|
no_log: true
|
|
|
|
|
tags: [miniflux, postgresql]
|
|
|
|
|
|
|
|
|
|
- name: Fetch borgmatic database password
|
|
|
|
|
ansible.builtin.command:
|
|
|
|
|
cmd: op --vault vg6xf6vvfmoh5hqjjhlhbeoaie item get mw2bv5we7woicjza7hc6s44yvy --fields db-password --reveal
|
|
|
|
|
delegate_to: localhost
|
|
|
|
|
register: _borgmatic_db_pw
|
|
|
|
|
changed_when: false
|
|
|
|
|
no_log: true
|
2026-01-16 14:41:36 -08:00
|
|
|
check_mode: false
|
2026-01-16 12:30:20 -08:00
|
|
|
tags: [postgresql]
|
|
|
|
|
|
|
|
|
|
- name: Build PostgreSQL user password lookup
|
|
|
|
|
ansible.builtin.set_fact:
|
2026-01-16 19:33:02 -08:00
|
|
|
postgresql_user_passwords:
|
2026-01-16 12:30:20 -08:00
|
|
|
miniflux: "{{ _miniflux_db_pw.stdout }}"
|
|
|
|
|
borgmatic: "{{ _borgmatic_db_pw.stdout }}"
|
|
|
|
|
alloy: "{{ _pg_alloy_pw.stdout }}"
|
|
|
|
|
no_log: true
|
|
|
|
|
tags: [postgresql]
|
|
|
|
|
|
2026-01-13 21:12:24 -08:00
|
|
|
roles:
|
2026-01-15 12:24:13 -08:00
|
|
|
- role: loki
|
|
|
|
|
tags: loki
|
|
|
|
|
- role: alloy
|
|
|
|
|
tags: alloy
|
2026-01-14 10:33:48 -08:00
|
|
|
- role: prometheus
|
|
|
|
|
tags: prometheus
|
|
|
|
|
- role: grafana
|
|
|
|
|
tags: grafana
|
2026-01-14 11:06:02 -08:00
|
|
|
- role: transmission
|
|
|
|
|
tags: transmission
|
2026-01-14 13:46:51 -08:00
|
|
|
- role: transmission_metrics
|
|
|
|
|
tags: transmission_metrics
|
2026-01-14 10:33:48 -08:00
|
|
|
- role: kiwix
|
|
|
|
|
tags: kiwix
|
|
|
|
|
- role: borgmatic
|
|
|
|
|
tags: borgmatic
|
2026-01-17 09:22:01 -08:00
|
|
|
- role: borgmatic_metrics
|
|
|
|
|
tags: borgmatic_metrics
|
2026-01-14 10:33:48 -08:00
|
|
|
- role: forgejo
|
|
|
|
|
tags: forgejo
|
2026-01-15 08:31:09 -08:00
|
|
|
- role: devpi
|
|
|
|
|
tags: devpi
|
|
|
|
|
- role: devpi_metrics
|
|
|
|
|
tags: devpi_metrics
|
2026-01-15 15:27:59 -08:00
|
|
|
- role: plex_metrics
|
|
|
|
|
tags: plex_metrics
|
2026-01-16 12:30:20 -08:00
|
|
|
- role: postgresql
|
|
|
|
|
tags: postgresql
|
|
|
|
|
- role: miniflux
|
|
|
|
|
tags: miniflux
|
2026-01-15 20:55:25 -08:00
|
|
|
- role: tailscale_serve
|
|
|
|
|
tags: tailscale-serve
|