Deploy unbound to mp nodes
This commit is contained in:
parent
85485a4651
commit
6e60a217ff
@ -10,7 +10,11 @@ all:
|
|||||||
vars:
|
vars:
|
||||||
docker_apt_arch: arm64
|
docker_apt_arch: arm64
|
||||||
children:
|
children:
|
||||||
storage:
|
pimp:
|
||||||
|
hosts:
|
||||||
|
pi-mp-1.desu.ltd:
|
||||||
|
pi-mp-2.desu.ltd:
|
||||||
|
pistorage:
|
||||||
hosts:
|
hosts:
|
||||||
pi-storage-1.desu.ltd:
|
pi-storage-1.desu.ltd:
|
||||||
pik8s:
|
pik8s:
|
||||||
|
@ -1,12 +1,18 @@
|
|||||||
#!/usr/bin/env ansible-playbook
|
#!/usr/bin/env ansible-playbook
|
||||||
# vim:ft=ansible:
|
# vim:ft=ansible:
|
||||||
---
|
---
|
||||||
|
# General configuration
|
||||||
- hosts: pis
|
- hosts: pis
|
||||||
roles:
|
roles:
|
||||||
- role: zerotier
|
- role: zerotier
|
||||||
tags: [ pis, zerotier ]
|
tags: [ pis, zerotier ]
|
||||||
- role: docker
|
- role: docker
|
||||||
tags: [ pis, docker, skip-pull ]
|
tags: [ pis, docker, skip-pull ]
|
||||||
|
tasks:
|
||||||
|
- name: install python3-docker
|
||||||
|
apt: name=python3-docker
|
||||||
|
tags: [ pis, docker ]
|
||||||
|
# k8s
|
||||||
- hosts: pik8s
|
- hosts: pik8s
|
||||||
roles:
|
roles:
|
||||||
- role: k8s
|
- role: k8s
|
||||||
@ -22,3 +28,17 @@
|
|||||||
- name: install openshift
|
- name: install openshift
|
||||||
pip: name=openshift state=latest
|
pip: name=openshift state=latest
|
||||||
tags: [ k8s, packages, pip ]
|
tags: [ k8s, packages, pip ]
|
||||||
|
# Multipurpose Pis doing multipurpose things
|
||||||
|
- hosts: pi-mp-1.desu.ltd,pi-mp-2.desu.ltd
|
||||||
|
vars:
|
||||||
|
container_default_behavior: no_defaults
|
||||||
|
tasks:
|
||||||
|
- name: docker deploy unbound
|
||||||
|
docker_container:
|
||||||
|
name: unbound
|
||||||
|
image: rehashedsalt/unbound-desu-local:latest
|
||||||
|
pull: yes
|
||||||
|
ports:
|
||||||
|
- "{{ ansible_facts.eth0.ipv4.address }}:53:5053/tcp"
|
||||||
|
- "{{ ansible_facts.eth0.ipv4.address }}:53:5053/udp"
|
||||||
|
tags: [ pis, mp, docker ]
|
||||||
|
Loading…
Reference in New Issue
Block a user