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
4bcc62b5
Commit
4bcc62b5
authored
Feb 14, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
1669436f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
8 deletions
+23
-8
ansible/install.yaml
ansible/install.yaml
+23
-8
No files found.
ansible/install.yaml
View file @
4bcc62b5
...
@@ -3,16 +3,23 @@
...
@@ -3,16 +3,23 @@
roles
:
roles
:
-
wireguard
-
wireguard
tasks
:
tasks
:
-
name
:
install bird
-
name
:
apt
apt
:
apt
:
name
:
bird2
update_cache
:
yes
name
:
bird2,tar,curl,wget
state
:
latest
state
:
latest
when
:
ansible_os_family == "Debian"
when
:
'
ansible_os_family
==
"Debian"'
-
name
:
install bird
-
name
:
yum
yum
:
yum
:
name
:
bird2
update_cache
:
yes
name
:
bird2,tar,curl,wget
state
:
latest
state
:
latest
when
:
ansible_os_family == "RedHat"
when
:
'
ansible_os_family
==
"RedHat"
and
ansible_distribution_major_version|int
<
8'
-
name
:
dnf
dnf
:
name
:
bird2,tar,curl,wget
state
:
latest
when
:
'
ansible_os_family
==
"RedHat"
and
ansible_distribution_major_version|int
==
8'
-
name
:
frp directory
-
name
:
frp directory
file
:
file
:
path
:
/tmp/frp
path
:
/tmp/frp
...
@@ -25,7 +32,10 @@
...
@@ -25,7 +32,10 @@
-
/tmp/frp/frpc
-
/tmp/frp/frpc
-
/tmp/frp/frps
-
/tmp/frp/frps
dest
:
/tmp/frp/
dest
:
/tmp/frp/
extra_opts
:
-
--strip-components=1
when
:
'
ansible_architecture
==
"x86_64"'
when
:
'
ansible_architecture
==
"x86_64"'
register
:
unarchive_result
-
name
:
get frp for arm
-
name
:
get frp for arm
unarchive
:
unarchive
:
src
:
https://github.com/fatedier/frp/releases/download/v0.31.2/frp_0.31.2_linux_arm64.tar.gz
src
:
https://github.com/fatedier/frp/releases/download/v0.31.2/frp_0.31.2_linux_arm64.tar.gz
...
@@ -37,9 +47,14 @@
...
@@ -37,9 +47,14 @@
extra_opts
:
extra_opts
:
-
--strip-components=1
-
--strip-components=1
when
:
'
ansible_architecture
==
"aarch64"'
when
:
'
ansible_architecture
==
"aarch64"'
register
:
unarchive_result
-
name
:
install frp
-
name
:
install frp
shell
:
'
cp
-rf
/tmp/frp/frpc
/usr/bin/
&&
cp
-rf
/tmp/frp/frps
/usr/bin/
&&
cp
-rf
/tmp/frp/systemd/*
/usr/lib/systemd/systemd/'
shell
:
'
cp
-rf
/tmp/frp/frpc
/usr/bin/
&&
cp
-rf
/tmp/frp/frps
/usr/bin/
&&
cp
-rf
/tmp/frp/systemd/*
/usr/lib/systemd/systemd/'
name
:
frp config directory
when
:
'
unarchive_result.changed'
-
name
:
config directories
file
:
file
:
path
:
/etc/frp
path
:
'
/etc/{{item}}'
state
:
directory
state
:
directory
with_items
:
-
wireguard
-
frp
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