aur repo host secret lookup

This commit is contained in:
=
2025-04-04 23:41:35 -04:00
parent eb360951a1
commit 8cad395e34
3 changed files with 36 additions and 47 deletions

View File

@ -1,5 +1,15 @@
---
- name: Lookup aur_repo_host secret
community.hashi_vault.vault_kv1_get:
path: ansible/group_vars/aur_repo_hosts
register: aur_repo_host_secret
- name: Set aur_repo facts
ansible.builtin.set_fact:
aur_repo_private_key: "{{ aur_repo_host_secret.secret.aur_repo_private_key }}"
aur_repo_key_thumbprint: "{{ aur_repo_host_secret.secret.aur_repo_key_thumbprint }}"
- name: Create the makepkg drop-in config file
ansible.builtin.template:
dest: /etc/makepkg.conf.d/makepkg.conf