ansible/playbooks/_lazy_lookup_workaround.yml
2026-08-05 19:19:58 +02:00

8 lines
512 B
YAML

---
# Instead of setting these variables in group_vars (as they should!), we set them here.
# Ansible loads every variable lazy, so every variable is multiple vault lookups, taking ~200sec instead of 3sec.
- name: Load all Secrets from Bitwarden
set_fact:
bitwarden_records_urmel_services_: "{{ lookup('community.general.bitwarden', '', organization_id=bitwarden_organization_id_urmel_services, sync=True) }}"
run_once: true # bw corrupts its own status file on parallel access and is only needed once