Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
P
playbooks
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
nanahira
playbooks
Commits
989fc9bd
Commit
989fc9bd
authored
Dec 12, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updates
parent
f1b7aff0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
9 deletions
+33
-9
koishi-enter.yml
koishi-enter.yml
+13
-0
services.yml
services.yml
+9
-9
worker-sync.yml
worker-sync.yml
+11
-0
No files found.
koishi-enter.yml
0 → 100644
View file @
989fc9bd
-
hosts
:
koishi-enter
remote_user
:
root
tasks
:
-
name
:
upload conf
copy
:
src
:
../koishi-enter/iptables-gateways
dest
:
'
{{ansible_user_dir}}/iptables-gateways'
notify
:
reload_list
handlers
:
-
name
:
reload_list
shell
:
|
iptables -t nat -F PREROUTING
iptables-restore --noflush {{ansible_user_dir}}/iptables-gateways
services.yml
View file @
989fc9bd
...
...
@@ -4,17 +4,17 @@
tasks
:
-
name
:
directory
file
:
path
:
'
{{
service_path
}}'
path
:
'
{{
ansible_user_dir
}}/{{
service_path
}}'
state
:
directory
-
name
:
docker-compose file
template
:
src
:
'
files/services/{{
service_name
}}/docker-compose.yml.j2'
dest
:
'
{{
service_path
}}/docker-compose.yml'
dest
:
'
{{
ansible_user_dir
}}/{{
service_path
}}/docker-compose.yml'
-
name
:
data
become
:
true
synchronize
:
src
:
'
files/services/{{
service_name
}}/data/'
dest
:
'
{{
service_path
}}/data'
dest
:
'
{{
ansible_user_dir
}}/{{
service_path
}}/data'
delete
:
yes
copy_links
:
yes
recursive
:
yes
...
...
@@ -25,14 +25,14 @@
notify
:
handle
-
name
:
templates directory
file
:
path
:
'
{{
service_path
}}/templates'
path
:
'
{{
ansible_user_dir
}}/{{
service_path
}}/templates'
state
:
directory
-
name
:
templates
become
:
true
with_items
:
'
{{
template_list
}}'
template
:
src
:
'
files/services/{{
service_name
}}/templates/{{
item
}}.j2'
dest
:
'
{{
service_path
}}/templates/{{
item
}}'
dest
:
'
{{
ansible_user_dir
}}/{{
service_path
}}/templates/{{
item
}}'
owner
:
'
{{
ansible_user_id
}}'
group
:
'
{{
ansible_user_id
}}'
follow
:
yes
...
...
@@ -42,7 +42,7 @@
with_items
:
'
{{
frpc_instances
}}'
template
:
src
:
'
files/services/{{
service_name
}}/templates/frpc.ini.j2'
dest
:
'
{{
service_path
}}/templates/frpc_{{
item.name
}}.ini'
dest
:
'
{{
ansible_user_dir
}}/{{
service_path
}}/templates/frpc_{{
item.name
}}.ini'
owner
:
'
{{
ansible_user_id
}}'
group
:
'
{{
ansible_user_id
}}'
follow
:
yes
...
...
@@ -50,7 +50,7 @@
notify
:
handle_frpc
-
name
:
docker-compose up -d
docker_compose
:
project_src
:
'
{{
service_path
}}'
project_src
:
'
{{
ansible_user_dir
}}/{{
service_path
}}'
remove_orphans
:
true
build
:
'
{{build}}'
pull
:
'
{{pull}}'
...
...
@@ -60,7 +60,7 @@
vars
:
handler
:
type
:
docker
path
:
'
{{
service_path
}}'
path
:
'
{{
ansible_user_dir
}}/{{
service_path
}}'
services
:
'
{{
handle_services
}}'
when
:
handle_services
-
name
:
handle_frpc
...
...
@@ -68,7 +68,7 @@
vars
:
handler
:
type
:
docker
path
:
'
{{
service_path
}}'
path
:
'
{{
ansible_user_dir
}}/{{
service_path
}}'
services
:
-
'
{{
item.name
}}'
with_items
:
'
{{
frpc_instances
}}'
...
...
worker-sync.yml
0 → 100644
View file @
989fc9bd
---
-
hosts
:
worker
remote_user
:
nanahira
#roles:
# - init
tasks
:
-
name
:
ansible
synchronize
:
src
:
~/ansible/
dest
:
~/ansible
delete
:
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