1
0

hashi vault lookups

This commit is contained in:
= 2025-04-04 23:08:01 -04:00
parent 81319370b1
commit 9601aa4937
7 changed files with 32 additions and 0 deletions

3
.gitignore vendored
View File

@ -2,6 +2,9 @@
**/.terraform/*
**/.terraform
.ansible/
.vscode/
ansible/collections/**
# registry password file

View File

@ -0,0 +1 @@
# code: language=ansible

View File

@ -0,0 +1,17 @@
# code: language=ansible
# Connection (SSH)
ansible_connection: ansible.builtin.ssh
ansible_ssh_host: dev.balsillie.house
ansible_ssh_port: 22
ansible_ssh_host_key_checking: false
ansible_ssh_pipelining: false
ansible_ssh_user: ladmin
ansible_ssh_private_key_file: ~/.ssh/conf.d/home/dev.balsillie.house.key
# Become (sudo)
ansible_become_method: ansible.builtin.sudo
ansible_become_user: root
ansible_become_password: "{{ lookup('community.hashi_vault.vault_kv1_get', 'ansible/host_vars/dev.balsillie.house/ansible_connection').secret.ansible_become_password }}" # noqa yaml[line-length]

View File

@ -1,5 +1,8 @@
all:
children:
aur_repo_hosts:
hosts:
dev.balsillie.house:
firewalls:
children:
opnsense:

View File

@ -0,0 +1,7 @@
# code: language=ansible
- name: AUR Repo
hosts: aur_repo_hosts
become: true
roles:
- aur_repo_host

1
ansible/playbooks/roles Symbolic link
View File

@ -0,0 +1 @@
../roles