mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-09-08 21:27:36 +02:00
19 lines
587 B
YAML
19 lines
587 B
YAML
- name: Set banner
|
|
become: "{{ false if inventory_hostname == 'nas.home.lan' else true }}"
|
|
block:
|
|
- name: Read GitLab password from Vault
|
|
ansible.builtin.set_fact:
|
|
gitlab_password: >-
|
|
{{
|
|
lookup(
|
|
'community.hashi_vault.hashi_vault',
|
|
'secret=secret/data/gitlab '
|
|
~ 'field=token '
|
|
~ 'url=http://vault.home.lan:8205 '
|
|
~ 'token=' ~ lookup('env', 'VAULT_TOKEN')
|
|
)
|
|
}}
|
|
|
|
- name: Show password
|
|
ansible.builtin.debug:
|
|
var: gitlab_password.token |