- provision-agent-host.yml: multica_pat now comes from vault_multica_pats[inventory_hostname_short], one daemon-<host> token per host. A pre_task asserts the key exists (never prints the value) so a missing entry fails by host name instead of as a no_log "censored". - provision-wong-host.yml: spaceship-earth only. Grows the root partition, PV and LV/filesystem with growpart + community.general.lvg/lvol; idempotent (second run changed=0). Then applies obsidian_headless. - roles/obsidian_headless: Obsidian's official headless Sync client (obsidian-headless 0.0.14) as system user obsync under a sandboxed systemd unit with UMask=0077. Vault at /srv/obsidian/vault: everpure/ and wip/ obsync-only, inbox/ granted to multica via access + default ACLs, vault root traverse-only. Verifies the isolation as multica. Sign-in to Obsidian Sync stays manual (see the role README). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
9 lines
345 B
YAML
9 lines
345 B
YAML
---
|
|
# Restarts only a unit that is already running: before the manual sign-in the
|
|
# unit is inert, and starting it here would just trip its conditions.
|
|
- name: Restart obsidian sync
|
|
ansible.builtin.command:
|
|
argv: [systemctl, try-restart, "{{ obsidian_headless_service_name }}.service"]
|
|
changed_when: true
|
|
listen: restart obsidian sync
|