Commit c7967605 authored by nanahira's avatar nanahira

migrate to docker dnsmasq

parent e6dc1251
......@@ -3,31 +3,15 @@ dns:
ansible_ssh_user: root
ipset: false
target_path: /etc/dnsmasq.d
become_in_rsync: true
handlers:
- type: systemd
name: dnsmasq
children:
dns-in-docker:
hosts:
yangtze.my-card.in:
ansible_ssh_port: 55322
ipset: true
south.mycard.moe:
ipset: true
ayane.mycard.moe:
ansible_ssh_host: 10.198.0.4
ansible_ssh_user: nanahira
ipset: true
koishi.moecube.com:
ansible_ssh_user: nanahira
ipset: true
yuzurisa.mycard.moe:
ansible_ssh_host: 10.198.0.7
ipset: true
marcia.mycard.moe:
ansible_ssh_host: 10.198.0.9
ansible_ssh_user: nanahira
ipset: true
nanahira.yuzurisa.com:
ansible_ssh_user: nanahira
meiko:
ansible_ssh_host: 192.168.3.233
ansible_ssh_port: 32768
......@@ -56,11 +40,43 @@ dns:
ansible_ssh_host: 10.198.0.19
gzz-tx:
ansible_ssh_host: 10.198.0.55
hlsj_fileserver:
ansible_ssh_host: 10.198.0.52
cain:
ansible_ssh_host: 10.198.0.13
ansible_ssh_user: nanahira
dns-in-docker:
vars:
ansible_ssh_user: root
ipset: false
target_path: ~/router/dnsmasq.d
become_in_rsync: false
handlers:
- type: docker
path: ~/router
services:
- dnsmasq
hosts:
yangtze.my-card.in:
ansible_ssh_port: 55322
ipset: true
ayane.mycard.moe:
ansible_ssh_host: 10.198.0.4
ansible_ssh_user: nanahira
ipset: true
koishi.moecube.com:
ansible_ssh_user: nanahira
ipset: true
yuzurisa.mycard.moe:
ansible_ssh_host: 10.198.0.7
ipset: true
marcia.mycard.moe:
ansible_ssh_host: 10.198.0.9
ansible_ssh_user: nanahira
ipset: true
nanahira.yuzurisa.com:
ansible_ssh_user: nanahira
hlsj_fileserver:
ansible_ssh_host: 10.198.0.52
ayumi:
ansible_ssh_host: 10.198.0.11
ipset: true
......
......@@ -9,7 +9,7 @@
- apple.china
tasks:
- name: update dnsmasq.d
become: true
become: '{{become_in_rsync}}'
synchronize:
src: '../dnsmasq.d/'
dest: '{{target_path}}'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment