Deploy unbound to mp nodes
This commit is contained in:
parent
85485a4651
commit
6e60a217ff
@ -10,7 +10,11 @@ all:
|
||||
vars:
|
||||
docker_apt_arch: arm64
|
||||
children:
|
||||
storage:
|
||||
pimp:
|
||||
hosts:
|
||||
pi-mp-1.desu.ltd:
|
||||
pi-mp-2.desu.ltd:
|
||||
pistorage:
|
||||
hosts:
|
||||
pi-storage-1.desu.ltd:
|
||||
pik8s:
|
||||
|
@ -1,12 +1,18 @@
|
||||
#!/usr/bin/env ansible-playbook
|
||||
# vim:ft=ansible:
|
||||
---
|
||||
# General configuration
|
||||
- hosts: pis
|
||||
roles:
|
||||
- role: zerotier
|
||||
tags: [ pis, zerotier ]
|
||||
- role: docker
|
||||
tags: [ pis, docker, skip-pull ]
|
||||
tasks:
|
||||
- name: install python3-docker
|
||||
apt: name=python3-docker
|
||||
tags: [ pis, docker ]
|
||||
# k8s
|
||||
- hosts: pik8s
|
||||
roles:
|
||||
- role: k8s
|
||||
@ -22,3 +28,17 @@
|
||||
- name: install openshift
|
||||
pip: name=openshift state=latest
|
||||
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