hashi vault lookups
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@ -2,6 +2,9 @@
|
|||||||
**/.terraform/*
|
**/.terraform/*
|
||||||
**/.terraform
|
**/.terraform
|
||||||
|
|
||||||
|
.ansible/
|
||||||
|
.vscode/
|
||||||
|
|
||||||
ansible/collections/**
|
ansible/collections/**
|
||||||
|
|
||||||
# registry password file
|
# registry password file
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
# code: language=ansible
|
@ -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]
|
@ -1,5 +1,8 @@
|
|||||||
all:
|
all:
|
||||||
children:
|
children:
|
||||||
|
aur_repo_hosts:
|
||||||
|
hosts:
|
||||||
|
dev.balsillie.house:
|
||||||
firewalls:
|
firewalls:
|
||||||
children:
|
children:
|
||||||
opnsense:
|
opnsense:
|
||||||
|
7
ansible/playbooks/home.yml
Normal file
7
ansible/playbooks/home.yml
Normal 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
1
ansible/playbooks/roles
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../roles
|
0
ansible/roles/aur_repo_host/vars/main.yml
Normal file
0
ansible/roles/aur_repo_host/vars/main.yml
Normal file
Reference in New Issue
Block a user