Commit c7967605 authored by nanahira's avatar nanahira

migrate to docker dnsmasq

parent e6dc1251
...@@ -3,31 +3,15 @@ dns: ...@@ -3,31 +3,15 @@ dns:
ansible_ssh_user: root ansible_ssh_user: root
ipset: false ipset: false
target_path: /etc/dnsmasq.d target_path: /etc/dnsmasq.d
become_in_rsync: true
handlers: handlers:
- type: systemd - type: systemd
name: dnsmasq name: dnsmasq
children:
dns-in-docker:
hosts: hosts:
yangtze.my-card.in:
ansible_ssh_port: 55322
ipset: true
south.mycard.moe: south.mycard.moe:
ipset: true 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: meiko:
ansible_ssh_host: 192.168.3.233 ansible_ssh_host: 192.168.3.233
ansible_ssh_port: 32768 ansible_ssh_port: 32768
...@@ -56,11 +40,43 @@ dns: ...@@ -56,11 +40,43 @@ dns:
ansible_ssh_host: 10.198.0.19 ansible_ssh_host: 10.198.0.19
gzz-tx: gzz-tx:
ansible_ssh_host: 10.198.0.55 ansible_ssh_host: 10.198.0.55
hlsj_fileserver:
ansible_ssh_host: 10.198.0.52
cain: cain:
ansible_ssh_host: 10.198.0.13 ansible_ssh_host: 10.198.0.13
ansible_ssh_user: nanahira 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: ayumi:
ansible_ssh_host: 10.198.0.11 ansible_ssh_host: 10.198.0.11
ipset: true ipset: true
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
- apple.china - apple.china
tasks: tasks:
- name: update dnsmasq.d - name: update dnsmasq.d
become: true become: '{{become_in_rsync}}'
synchronize: synchronize:
src: '../dnsmasq.d/' src: '../dnsmasq.d/'
dest: '{{target_path}}' 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