Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
nextgen-router
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
nextgen-router
Commits
c2ad6834
Commit
c2ad6834
authored
Feb 03, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move dnsmasq
parent
fc7072de
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
110 deletions
+59
-110
cloud.yaml
cloud.yaml
+2
-55
network.yaml
network.yaml
+2
-55
tasks/dnsmasq.yaml
tasks/dnsmasq.yaml
+55
-0
No files found.
cloud.yaml
View file @
c2ad6834
...
...
@@ -53,61 +53,8 @@
with_items
:
-
iptables-forward.sh
-
iptables-gateways-interpreter.sh
-
name
:
dnsmasq directory
file
:
name
:
'
{{ansible_user_dir}}/nextgen-router/services/dnsmasq/{{item}}'
state
:
directory
recurse
:
true
with_items
:
-
smartdns
-
dnsmasq.d
-
misc
-
smartdns-cache
-
name
:
dnsmasq docker-compose
copy
:
src
:
./files/dnsmasq/docker-compose.yml
dest
:
'
{{ansible_user_dir}}/nextgen-router/services/dnsmasq/docker-compose.yml'
-
name
:
dnsmasq.conf
template
:
src
:
./files/dnsmasq/dnsmasq.conf.j2
dest
:
'
{{ansible_user_dir}}/nextgen-router/services/dnsmasq/dnsmasq.conf'
notify
:
restart_dnsmasq
-
name
:
smartdns.conf
template
:
src
:
./files/dnsmasq/smartdns.conf.j2
dest
:
'
{{ansible_user_dir}}/nextgen-router/services/dnsmasq/smartdns/smartdns.conf'
notify
:
restart_dnsmasq
-
name
:
smartdns china list
copy
:
src
:
./data/china-list.conf
dest
:
'
{{ansible_user_dir}}/nextgen-router/services/dnsmasq/smartdns/china-list.conf'
notify
:
restart_dnsmasq
-
name
:
update dnsmasq.d
synchronize
:
src
:
./mycard-dnsmasq/dnsmasq.d/
dest
:
'
{{ansible_user_dir}}/nextgen-router/services/dnsmasq/dnsmasq.d'
recursive
:
yes
verify_host
:
no
checksum
:
yes
archive
:
no
notify
:
restart_dnsmasq
when
:
dnsmasq.mycardDomains is defined and dnsmasq.mycardDomains
-
name
:
gfwlist ipset
copy
:
src
:
'
./data/gfwlist-ipset.conf'
dest
:
'
{{ansible_user_dir}}/nextgen-router/services/dnsmasq/dnsmasq.d/gfwlist-ipset.conf'
when
:
dnsmasq.gfwlistIPSet is defined and dnsmasq.gfwlistIPSet
notify
:
restart_dnsmasq
-
name
:
gfwlist ipset clean
file
:
path
:
'
{{ansible_user_dir}}/nextgen-router/services/dnsmasq/dnsmasq.d/gfwlist-ipset.conf'
state
:
absent
when
:
dnsmasq.gfwlistIPSet is defined and not dnsmasq.gfwlistIPSet
notify
:
restart_dnsmasq
-
name
:
start dnsmasq
docker_compose
:
project_src
:
'
{{ansible_user_dir}}/nextgen-router/services/dnsmasq'
remove_orphans
:
true
-
name
:
dnsmasq
import_tasks
:
./tasks/dnsmasq.yaml
handlers
:
-
name
:
restart_dnsmasq
docker_compose
:
...
...
network.yaml
View file @
c2ad6834
...
...
@@ -138,61 +138,8 @@
template
:
src
:
./files/dhcpv6/docker-compose.yml.j2
dest
:
'
{{ansible_user_dir}}/nextgen-router/services/dhcpv6/docker-compose.yml'
-
name
:
dnsmasq directory
file
:
name
:
'
{{ansible_user_dir}}/nextgen-router/services/dnsmasq/{{item}}'
state
:
directory
recurse
:
true
with_items
:
-
smartdns
-
dnsmasq.d
-
misc
-
smartdns-cache
-
name
:
dnsmasq docker-compose
copy
:
src
:
./files/dnsmasq/docker-compose.yml
dest
:
'
{{ansible_user_dir}}/nextgen-router/services/dnsmasq/docker-compose.yml'
-
name
:
dnsmasq.conf
template
:
src
:
./files/dnsmasq/dnsmasq.conf.j2
dest
:
'
{{ansible_user_dir}}/nextgen-router/services/dnsmasq/dnsmasq.conf'
notify
:
restart_dnsmasq
-
name
:
smartdns.conf
template
:
src
:
./files/dnsmasq/smartdns.conf.j2
dest
:
'
{{ansible_user_dir}}/nextgen-router/services/dnsmasq/smartdns/smartdns.conf'
notify
:
restart_dnsmasq
-
name
:
smartdns china list
copy
:
src
:
./data/china-list.conf
dest
:
'
{{ansible_user_dir}}/nextgen-router/services/dnsmasq/smartdns/china-list.conf'
notify
:
restart_dnsmasq
-
name
:
update dnsmasq.d
synchronize
:
src
:
./mycard-dnsmasq/dnsmasq.d/
dest
:
'
{{ansible_user_dir}}/nextgen-router/services/dnsmasq/dnsmasq.d'
recursive
:
yes
verify_host
:
no
checksum
:
yes
archive
:
no
notify
:
restart_dnsmasq
when
:
dnsmasq.mycardDomains is defined and dnsmasq.mycardDomains
-
name
:
gfwlist ipset
copy
:
src
:
'
./data/gfwlist-ipset.conf'
dest
:
'
{{ansible_user_dir}}/nextgen-router/services/dnsmasq/dnsmasq.d/gfwlist-ipset.conf'
when
:
dnsmasq.gfwlistIPSet is defined and dnsmasq.gfwlistIPSet
notify
:
restart_dnsmasq
-
name
:
gfwlist ipset clean
file
:
path
:
'
{{ansible_user_dir}}/nextgen-router/services/dnsmasq/dnsmasq.d/gfwlist-ipset.conf'
state
:
absent
when
:
dnsmasq.gfwlistIPSet is defined and not dnsmasq.gfwlistIPSet
notify
:
restart_dnsmasq
-
name
:
start dnsmasq
docker_compose
:
project_src
:
'
{{ansible_user_dir}}/nextgen-router/services/dnsmasq'
remove_orphans
:
true
-
name
:
dnsmasq
import_tasks
:
./tasks/dnsmasq.yaml
handlers
:
-
name
:
restart_dnsmasq
docker_compose
:
...
...
tasks/dnsmasq.yaml
0 → 100644
View file @
c2ad6834
-
name
:
dnsmasq directory
file
:
name
:
'
{{ansible_user_dir}}/nextgen-router/services/dnsmasq/{{item}}'
state
:
directory
recurse
:
true
with_items
:
-
smartdns
-
dnsmasq.d
-
misc
-
smartdns-cache
-
name
:
dnsmasq docker-compose
copy
:
src
:
../files/dnsmasq/docker-compose.yml
dest
:
'
{{ansible_user_dir}}/nextgen-router/services/dnsmasq/docker-compose.yml'
-
name
:
dnsmasq.conf
template
:
src
:
../files/dnsmasq/dnsmasq.conf.j2
dest
:
'
{{ansible_user_dir}}/nextgen-router/services/dnsmasq/dnsmasq.conf'
notify
:
restart_dnsmasq
-
name
:
smartdns.conf
template
:
src
:
../files/dnsmasq/smartdns.conf.j2
dest
:
'
{{ansible_user_dir}}/nextgen-router/services/dnsmasq/smartdns/smartdns.conf'
notify
:
restart_dnsmasq
-
name
:
smartdns china list
copy
:
src
:
../data/china-list.conf
dest
:
'
{{ansible_user_dir}}/nextgen-router/services/dnsmasq/smartdns/china-list.conf'
notify
:
restart_dnsmasq
-
name
:
update dnsmasq.d
synchronize
:
src
:
../mycard-dnsmasq/dnsmasq.d/
dest
:
'
{{ansible_user_dir}}/nextgen-router/services/dnsmasq/dnsmasq.d'
recursive
:
yes
verify_host
:
no
checksum
:
yes
archive
:
no
notify
:
restart_dnsmasq
when
:
dnsmasq.mycardDomains is defined and dnsmasq.mycardDomains
-
name
:
gfwlist ipset
copy
:
src
:
'
../data/gfwlist-ipset.conf'
dest
:
'
{{ansible_user_dir}}/nextgen-router/services/dnsmasq/dnsmasq.d/gfwlist-ipset.conf'
when
:
dnsmasq.gfwlistIPSet is defined and dnsmasq.gfwlistIPSet
notify
:
restart_dnsmasq
-
name
:
gfwlist ipset clean
file
:
path
:
'
{{ansible_user_dir}}/nextgen-router/services/dnsmasq/dnsmasq.d/gfwlist-ipset.conf'
state
:
absent
when
:
dnsmasq.gfwlistIPSet is defined and not dnsmasq.gfwlistIPSet
notify
:
restart_dnsmasq
-
name
:
start dnsmasq
docker_compose
:
project_src
:
'
{{ansible_user_dir}}/nextgen-router/services/dnsmasq'
remove_orphans
:
true
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment