mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-09-09 05:37:35 +02:00
build-all
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
- 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=https://vault.home.lan:8205 '
|
||||
~ 'token=' ~ lookup('env', 'VAULT_TOKEN')
|
||||
)
|
||||
}}
|
||||
|
||||
- name: Show password
|
||||
ansible.builtin.debug:
|
||||
var: gitlab_password
|
||||
Reference in New Issue
Block a user