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
76bef33f
Commit
76bef33f
authored
Dec 19, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add backup dnses
parent
61a9b346
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
10 deletions
+5
-10
migrate-dns-back.yaml
migrate-dns-back.yaml
+0
-10
tasks/resolve.yaml
tasks/resolve.yaml
+5
-0
No files found.
migrate-dns-back.yaml
View file @
76bef33f
...
@@ -11,16 +11,6 @@
...
@@ -11,16 +11,6 @@
max-size
:
'
1g'
max-size
:
'
1g'
# registry-mirrors
# registry-mirrors
tasks
:
tasks
:
-
name
:
set resolv.conf
become
:
true
copy
:
content
:
|
nameserver 127.0.0.1
{% for dns in smartdns.china_dns %}
nameserver {{dns}}
{% endfor %}
dest
:
/etc/resolv.conf
-
name
:
read docker daemon
-
name
:
read docker daemon
become
:
true
become
:
true
shell
:
'
cat
/etc/docker/daemon.json'
shell
:
'
cat
/etc/docker/daemon.json'
...
...
tasks/resolve.yaml
View file @
76bef33f
...
@@ -3,6 +3,11 @@
...
@@ -3,6 +3,11 @@
copy
:
copy
:
content
:
|
content
:
|
nameserver 127.0.0.1
nameserver 127.0.0.1
{% for br in bridges %}
{% if not (br.masq is defined and br.masq) and br.address is defined and br.address %}
nameserver {{ br.address | regex_replace("/\d+$", "") }}
{% endif %}
{% endfor %}
{% for dns in smartdns.china_dns %}
{% for dns in smartdns.china_dns %}
nameserver {{dns}}
nameserver {{dns}}
{% endfor %}
{% endfor %}
...
...
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