Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
tun
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
Railgun
tun
Commits
8d17051f
Commit
8d17051f
authored
Dec 11, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updates
parent
e0f9949b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
11 deletions
+17
-11
ansible/configure.yaml
ansible/configure.yaml
+1
-0
ansible/protocols/null/configure.yaml
ansible/protocols/null/configure.yaml
+1
-4
ansible/protocols/wg/configure.yaml
ansible/protocols/wg/configure.yaml
+6
-2
ansible/protocols/wgfrp/configure.yaml
ansible/protocols/wgfrp/configure.yaml
+6
-2
update.sh
update.sh
+3
-3
No files found.
ansible/configure.yaml
View file @
8d17051f
...
...
@@ -76,6 +76,7 @@
docker_compose
:
project_src
:
'
{{ansible_user_dir}}/nextgen-network/services'
remove_orphans
:
true
pull
:
true
handlers
:
-
name
:
reload_switch_rules
become
:
true
...
...
ansible/protocols/null/configure.yaml
View file @
8d17051f
-
name
:
'
{{conn.name}}:
stop
wireguard'
become
:
true
ignore_errors
:
true
systemd
:
name
:
'
wg-quick@{{conn.name}}'
state
:
stopped
enabled
:
no
-
name
:
'
{{conn.name}}:
remove
wg
config
files'
file
:
path
:
'
/etc/wireguard/{{conn.name}}.conf'
state
:
absent
ansible/protocols/wg/configure.yaml
View file @
8d17051f
# 因为测试期间频繁改动参数,这里手动down掉
# 调试wg的时候开这个,调试别的的时候注释掉
-
name
:
'
{{conn.name}}:
wg
conf'
become
:
true
template
:
src
:
wg.conf.j2
dest
:
'
/etc/wireguard/{{conn.name}}.conf'
register
:
wg_conf_result
-
name
:
'
{{conn.name}}:
enable
wg'
become
:
true
systemd
:
name
:
'
wg-quick@{{conn.name}}'
state
:
started
...
...
@@ -13,19 +15,21 @@
ignore_errors
:
true
register
:
'
wg_enable_result'
-
name
:
'
{{conn.name}}:
restart
wg'
become
:
true
systemd
:
name
:
'
wg-quick@{{conn.name}}'
state
:
restarted
when
:
'
not
wg_enable_result.changed
and
wg_conf_result.changed'
ignore_errors
:
true
-
name
:
'
{{conn.name}}:
config
for
setconf'
become
:
true
template
:
src
:
wg-setconf.conf.j2
dest
:
'
/tmp/{{conn.name}}-setconf.conf'
register
:
'
wg_setconf_result'
ignore_errors
:
true
when
:
'
not
wg_enable_result.changed
and
not
wg_conf_result.changed'
-
name
:
'
{{conn.name}}:
wg
setconf'
become
:
true
ignore_errors
:
true
shell
:
'
wg
setconf
{{conn.name}}
/tmp/{{conn.name}}-setconf.conf'
when
:
'
not
wg_enable_result.changed
and
not
wg_conf_result.changed
and
wg_setconf_result.changed'
when
:
'
wg_setconf_result.changed'
ansible/protocols/wgfrp/configure.yaml
View file @
8d17051f
...
...
@@ -8,11 +8,13 @@
# wg
-
name
:
'
{{conn.name}}:
wg
conf'
become
:
true
template
:
src
:
wgfrp.conf.j2
dest
:
'
/etc/wireguard/{{conn.name}}.conf'
register
:
wg_conf_result
-
name
:
'
{{conn.name}}:
start
wg'
become
:
true
systemd
:
name
:
'
wg-quick@{{conn.name}}'
state
:
started
...
...
@@ -20,19 +22,21 @@
ignore_errors
:
true
register
:
wg_enable_result
-
name
:
'
{{conn.name}}:
restart
wg'
become
:
true
ignore_errors
:
true
systemd
:
name
:
'
wg-quick@{{conn.name}}'
state
:
restarted
when
:
'
not
wg_enable_result.changed
and
wg_conf_result.changed'
-
name
:
'
{{conn.name}}:
config
for
setconf'
become
:
true
ignore_errors
:
true
template
:
src
:
wgfrp-setconf.conf.j2
dest
:
'
/tmp/{{conn.name}}-setconf.conf'
register
:
'
wg_setconf_result'
when
:
'
not
wg_enable_result.changed
and
not
wg_conf_result.changed'
-
name
:
'
{{conn.name}}:
wg
setconf'
become
:
true
ignore_errors
:
true
shell
:
'
wg
setconf
{{conn.name}}
/tmp/{{conn.name}}-setconf.conf'
when
:
'
not
wg_enable_result.changed
and
not
wg_conf_result.changed
and
wg_setconf_result.changed'
when
:
'
wg_setconf_result.changed'
update.sh
View file @
8d17051f
...
...
@@ -10,9 +10,9 @@ set -e
mkdir
-p
result
npm start
cd
lists
./run.sh
cd
..
#
cd lists
#
./run.sh
#
cd ..
cd
ansible
||
exit
...
...
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