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
663bb7a1
Commit
663bb7a1
authored
Dec 19, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify
parent
22cd8097
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
ansible/configure.yaml
ansible/configure.yaml
+10
-10
No files found.
ansible/configure.yaml
View file @
663bb7a1
...
...
@@ -78,7 +78,7 @@
with_items
:
'
{{routeLists.mycard}}'
-
name
:
ocserv pre-configure
include_tasks
:
'
protocols/oc/ocserv-pre.yaml'
when
:
ocservNeeded and not noBird
and not systemBird
when
:
ocservNeeded and not noBird
# 为了提高测试时候的性能,不改动wg的时候注释掉这段
-
name
:
'
clean
up
null
connections
first'
include_tasks
:
'
protocols/{{item.protocol}}/configure.yaml'
...
...
@@ -97,25 +97,25 @@
copy
:
content
:
'
{{dockerServices
|
to_yaml}}'
dest
:
'
{{ansible_user_dir}}/nextgen-network/services/docker-compose.yml'
when
:
not noBird
and not systemBird
when
:
not noBird
-
name
:
bird conf
template
:
src
:
bird.conf.j2
dest
:
'
{{ansible_user_dir}}/nextgen-network/services/bird.conf'
notify
:
restart_bird
when
:
not noBird
and not systemBird
when
:
not noBird
-
name
:
frps conf
template
:
src
:
protocols/wgfrp/frps.ini.j2
dest
:
'
{{ansible_user_dir}}/nextgen-network/services/frps.ini'
when
:
frpsNeeded and not noBird
and not systemBird
when
:
frpsNeeded and not noBird
notify
:
restart_frps
-
name
:
start services
docker_compose
:
project_src
:
'
{{ansible_user_dir}}/nextgen-network/services'
remove_orphans
:
true
# pull: true
when
:
not noBird
and not systemBird
when
:
not noBird
-
name
:
systemd bird
become
:
true
template
:
...
...
@@ -141,14 +141,14 @@
restarted
:
true
services
:
-
bird
when
:
not noBird
and not systemBird
when
:
not noBird
-
name
:
restart_frps
docker_compose
:
project_src
:
'
{{ansible_user_dir}}/nextgen-network/services'
restarted
:
true
services
:
-
frps
when
:
not noBird
and not systemBird
when
:
not noBird
-
name
:
restart_frpc
docker_compose
:
project_src
:
'
{{ansible_user_dir}}/nextgen-network/services'
...
...
@@ -156,14 +156,14 @@
services
:
-
frpc-{{item.name}}
with_items
:
'
{{connections}}'
when
:
'
item.protocol
==
"wgfrp"
and
item.frpType
==
"frpc"'
and not noBird
and not systemBird
when
:
'
item.protocol
==
"wgfrp"
and
item.frpType
==
"frpc"'
and not noBird
-
name
:
restart_ocserv
docker_compose
:
project_src
:
'
{{ansible_user_dir}}/nextgen-network/services'
restarted
:
true
services
:
-
ocserv
when
:
not noBird
and not systemBird
when
:
not noBird
-
name
:
restart_openconnect
docker_compose
:
project_src
:
'
{{ansible_user_dir}}/nextgen-network/services'
...
...
@@ -171,7 +171,7 @@
services
:
-
openconnect-{{item.name}}
with_items
:
'
{{connections}}'
when
:
'
item.protocol
==
"oc"
and
item.ocType
==
"client"'
and not noBird
and not systemBird
when
:
'
item.protocol
==
"oc"
and
item.ocType
==
"client"'
and not noBird
-
name
:
restart_bird_systemd
become
:
true
systemd
:
...
...
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