Separate out Pi roles, reorganize inventory, deploy docker to all pis indiscriminately
This commit is contained in:
parent
b54e4a2e0b
commit
9a516d8f08
@ -6,22 +6,6 @@ all:
|
||||
children:
|
||||
home:
|
||||
children:
|
||||
pik8s:
|
||||
vars:
|
||||
docker_apt_arch: arm64
|
||||
children:
|
||||
pik8s_masters:
|
||||
vars:
|
||||
kubernetes_role: master
|
||||
hosts:
|
||||
pi-kub-master-1.desu.ltd:
|
||||
pik8s_nodes:
|
||||
vars:
|
||||
kubernetes_role: node
|
||||
hosts:
|
||||
# pi-kub-node-1.desu.ltd:
|
||||
pi-kub-node-2.desu.ltd:
|
||||
pi-kub-node-3.desu.ltd:
|
||||
pis:
|
||||
vars:
|
||||
docker_apt_arch: arm64
|
||||
@ -30,6 +14,20 @@ all:
|
||||
hosts:
|
||||
pi-storage-1.desu.ltd:
|
||||
ansible_host: 192.168.103.1
|
||||
pik8s:
|
||||
children:
|
||||
pik8s_masters:
|
||||
vars:
|
||||
kubernetes_role: master
|
||||
hosts:
|
||||
pi-kub-master-1.desu.ltd:
|
||||
pik8s_nodes:
|
||||
vars:
|
||||
kubernetes_role: node
|
||||
hosts:
|
||||
# pi-kub-node-1.desu.ltd:
|
||||
pi-kub-node-2.desu.ltd:
|
||||
pi-kub-node-3.desu.ltd:
|
||||
desktop:
|
||||
hosts:
|
||||
dsk-ryzen-0.desu.ltd:
|
||||
|
@ -3,8 +3,6 @@
|
||||
---
|
||||
- hosts: pik8s
|
||||
roles:
|
||||
- role: docker
|
||||
tags: [ k8s, docker, skip-pull ]
|
||||
- role: k8s
|
||||
tags: [ k8s, skip-pull ]
|
||||
- role: motd
|
||||
|
7
playbooks/pis.yml
Executable file
7
playbooks/pis.yml
Executable file
@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env ansible-playbook
|
||||
# vim:ft=ansible:
|
||||
---
|
||||
- hosts: pis
|
||||
roles:
|
||||
- role: docker
|
||||
tags: [ docker, skip-pull ]
|
3
site.yml
3
site.yml
@ -18,5 +18,6 @@
|
||||
- import_playbook: playbooks/db.yml
|
||||
- import_playbook: playbooks/web.yml
|
||||
- import_playbook: playbooks/game.yml
|
||||
- import_playbook: playbooks/desktop.yml
|
||||
- import_playbook: playbooks/pis.yml
|
||||
- import_playbook: playbooks/pik8s.yml
|
||||
- import_playbook: playbooks/desktop.yml
|
||||
|
Loading…
Reference in New Issue
Block a user