1
0

adding credentials

This commit is contained in:
michael 2022-10-24 21:53:39 +13:00
parent 8aa59da325
commit 09d6c93224
8 changed files with 46 additions and 50 deletions

View File

@ -9,3 +9,4 @@ collections_paths = ./collections
collections_path = ./collections collections_path = ./collections
roles_path = ./roles roles_path = ./roles
vault_password_file = ./vault_password vault_password_file = ./vault_password
playbook_dir = ./playbooks/

View File

@ -0,0 +1,2 @@
---
ansible_host: kube01.balsillie.net

View File

@ -0,0 +1,2 @@
---
ansible_host: kube02.balsillie.net

View File

@ -0,0 +1,2 @@
---
ansible_host: kube03.balsillie.net

View File

@ -2,6 +2,7 @@
# connection # connection
ansible_host: server.balsillie.net
ansible_user: michael ansible_user: michael
ansible_become_user: michael ansible_become_user: michael
ansible_os_family: Arch ansible_os_family: Arch

View File

@ -4,81 +4,56 @@ all:
children: children:
hypervisors: hypervisors:
hosts: hosts:
- server server:
- lab lab:
- hv00 hv00:
vms: vms:
children: children:
nodes: nodes:
hosts: hosts:
- node1 node1:
- node2 node2:
- node3 node3:
hosts: hosts:
- router router:
hetzner: hetzner:
hosts: hosts:
- hv00 hv00:
- firewall00 fw00:
k8s: k8s:
children: children:
k8s_control: k8s_control:
hosts: hosts:
- kube00 kube00:
- kube01 kube01:
- kube02 kube02:
k8s_taint: k8s_taint:
hosts: hosts:
- kube00 kube00:
- kube01 kube01:
- kube02 kube02:
k8s_worker: k8s_worker:
hosts: hosts:
- kube00 kube00:
- kube01 kube01:
- kube02 kube02:
firewalls: firewalls:
children: children:
fortigate: fortigate:
hosts: hosts:
- fortigate00 fortigate00:
opnsense: opnsense:
hosts: hosts:
- firewall00 fw00:
switches: switches:
hosts: hosts:
- switch00 sw00:
workstations: workstations:
children: children:
arch: arch:
hosts: hosts:
- lat5420 lat5420:
- sff sff:
windows: windows:
hosts: hosts:
- bridie
hosts:
server:
ansible_host: server.balsillie.net
lab:
ansible_host: lab.balsillie.net
hv00:
ansible_host: server.balsillie.net
bridie: bridie:
ansible_host: bridie.balsillie.net
lat5420:
ansible_host: lat5420.balsillie.net
sff:
ansible_host: sff.balsillie.net
node1:
ansible_host: node1.balsillie.net
node2:
ansible_host: node2.balsillie.net
node3:
ansible_host: node3.balsillie.net
router:
ansible_host: router.balsillie.net
firewall00:
ansible_host: firewall.balsillie.net
fortigate00:
ansible_host: fortigate.balsillie.net

View File

@ -0,0 +1,13 @@
cd ./ansible
# Ansible vault password is provided automatically by vault_password file
# Path to vault_password file is provided automatically by ansible.cfg
# Hence execution must be done from the context of the folder that holds ansible.cfg
ansible-vault create [path-to-vault-file]
ansibe-vault edit [path-to-vault-file]
ansible-playbook [path-to-playbook] #include file extension