mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-10-28 13:07:06 +01:00
build-all
This commit is contained in:
1 parent
f24acb3bbe
commit
ea38ab33a0
8 files changed
+110
No files matched your search
@@ -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