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
b930b8f0
Commit
b930b8f0
authored
Dec 14, 2019
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
b7ef9800
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
30 deletions
+43
-30
init.yml
init.yml
+4
-4
install_srvpro.yml
install_srvpro.yml
+36
-23
koishipro2ios.yml
koishipro2ios.yml
+2
-2
update_srvpro.yml
update_srvpro.yml
+1
-1
No files found.
init.yml
View file @
b930b8f0
...
...
@@ -23,7 +23,7 @@
become
:
true
lineinfile
:
path
:
/etc/ssh/sshd_config
regexp
:
'
^#?PasswordAuthentication
yes
.*$'
regexp
:
'
^#?PasswordAuthentication
true
.*$'
line
:
'
PasswordAuthentication
no'
backrefs
:
true
when
:
"
ansible_user_id
==
'root'
or
ansible_user_id
==
'nanahira'
or
ansible_user_id
==
'mycard'
or
ansible_user_id
==
'zh99998'"
# Only self-managed servers
...
...
@@ -33,20 +33,20 @@
sysctl
:
name
:
vm.swappiness
value
:
1
sysctl_set
:
yes
sysctl_set
:
true
-
name
:
TCP BBR
become
:
true
sysctl
:
name
:
net.core.default_qdisc
value
:
fq
sysctl_set
:
yes
sysctl_set
:
true
when
:
"
ansible_distribution
!=
'CentOS'
or
ansible_distribution_major_version|int
>
7"
-
name
:
TCP BBR
become
:
true
sysctl
:
name
:
net.ipv4.tcp_congestion_control
value
:
bbr
sysctl_set
:
yes
sysctl_set
:
true
when
:
"
ansible_distribution
!=
'CentOS'
or
ansible_distribution_major_version|int
>
7"
-
name
:
limit
become
:
true
...
...
install_srvpro.yml
View file @
b930b8f0
---
-
hosts
:
srvpro
_install
-
hosts
:
srvpro
remote_user
:
root
#vars:
# home_path: ~
# fork: mycard
tasks
:
-
name
:
curl
become
:
yes
become
:
true
apt
:
update_cache
:
true
state
:
latest
name
:
curl,apt-transport-https
name
:
curl,apt-transport-https
,lsb-release,gnupg
when
:
"
ansible_distribution
!=
'CentOS'"
-
name
:
node source
become
:
yes
shell
:
'
curl
-sL
https://deb.nodesource.com/setup_12.x
|
bash
-'
-
name
:
node apt key
become
:
true
apt_key
:
url
:
https://deb.nodesource.com/gpgkey/nodesource.gpg.key
when
:
"
(ansible_distribution
==
'Ubuntu'
and
ansible_distribution_major_version|int
<
18)
or
(ansible_distribution
==
'Debian'
and
ansible_distribution_major_version|int
<
9)"
-
name
:
nodesource
become
:
true
apt_repository
:
filename
:
nodesource
repo
:
'
deb
https://deb.nodesource.com/node_12.x
{{ansible_distribution_release}}
main'
when
:
"
(ansible_distribution
==
'Ubuntu'
and
ansible_distribution_major_version|int
<
18)
or
(ansible_distribution
==
'Debian'
and
ansible_distribution_major_version|int
<
9)"
-
name
:
nodesource
become
:
true
apt_repository
:
filename
:
nodesource
repo
:
'
deb-src
https://deb.nodesource.com/node_12.x
{{ansible_distribution_release}}
main'
when
:
"
(ansible_distribution
==
'Ubuntu'
and
ansible_distribution_major_version|int
<
18)
or
(ansible_distribution
==
'Debian'
and
ansible_distribution_major_version|int
<
9)"
-
name
:
apt
become
:
yes
become
:
true
apt
:
#
update_cache: true
update_cache
:
true
state
:
latest
name
:
wget,git,build-essential,libreadline-dev,libsqlite3-dev,libevent-dev,mono-complete,redis-server,p7zip-full
when
:
"
ansible_distribution
!=
'CentOS'"
-
name
:
nodejs from nodesource
become
:
yes
become
:
true
apt
:
state
:
latest
name
:
nodejs
when
:
"
(ansible_distribution
==
'Ubuntu'
and
ansible_distribution_major_version|int
<
18)
or
(ansible_distribution
==
'Debian'
and
ansible_distribution_major_version|int
<
9)"
-
name
:
nodejs from apt
become
:
yes
become
:
true
apt
:
state
:
latest
name
:
npm
when
:
"
(ansible_distribution
==
'Ubuntu'
and
ansible_distribution_major_version|int
>=
18)
or
(ansible_distribution
==
'Debian'
and
ansible_distribution_major_version|int
>=
9)"
-
name
:
mono yum key
become
:
yes
become
:
true
rpm_key
:
key
:
'
http://pool.sks-keyservers.net/pks/lookup?op=get&search=0x3fa7e0328081bff6a14da29aa6a19b38d3d831ef'
when
:
"
ansible_distribution
==
'CentOS'"
-
name
:
mono yum source
become
:
yes
become
:
true
yum_repository
:
name
:
mono
description
:
mono
...
...
@@ -56,16 +69,16 @@
update_cache
:
true
name
:
epel-release,curl
when
:
"
ansible_distribution
==
'CentOS'
and
ansible_distribution_major_version|int
<=
7"
-
name
:
node source
become
:
true
shell
:
'
curl
-sL
https://rpm.nodesource.com/setup_12.x
|
bash
-'
when
:
"
ansible_distribution
==
'CentOS'
and
ansible_distribution_major_version|int
<=
7"
#
- name: node source
#
become: true
#
shell: 'curl -sL https://rpm.nodesource.com/setup_12.x | bash -'
#
when: "ansible_distribution == 'CentOS' and ansible_distribution_major_version|int <= 7"
-
name
:
yum
become
:
yes
become
:
true
yum
:
state
:
latest
update_cache
:
true
name
:
wget,git,n
odejs
,gcc,gcc-c++,make,sqlite-devel,readline-devel,openssl-devel,libevent-devel,mono-complete,redis,p7zip,p7zip-plugins,tar,unzip
name
:
wget,git,n
pm
,gcc,gcc-c++,make,sqlite-devel,readline-devel,openssl-devel,libevent-devel,mono-complete,redis,p7zip,p7zip-plugins,tar,unzip
when
:
"
ansible_distribution
==
'CentOS'
and
ansible_distribution_major_version|int
<=
7"
-
name
:
epel
8
become
:
true
...
...
@@ -80,22 +93,22 @@
name
:
curl,wget,git,nodejs,npm,gcc,gcc-c++,make,sqlite-devel,readline-devel,openssl-devel,libevent-devel,mono-complete,redis,p7zip,p7zip-plugins,tar,unzip
when
:
"
ansible_distribution
==
'CentOS'
and
ansible_distribution_major_version|int
==
8"
-
name
:
npm
become
:
yes
become
:
true
npm
:
name
:
'
n'
state
:
latest
global
:
true
-
name
:
nodejs version
become
:
yes
become
:
true
shell
:
n
12
-
name
:
npm
become
:
yes
become
:
true
npm
:
name
:
npm
state
:
latest
global
:
true
-
name
:
pm2
become
:
yes
become
:
true
npm
:
name
:
pm2
state
:
latest
...
...
@@ -112,7 +125,7 @@
unarchive
:
src
:
https://minio.mycard.moe:9000/nanahira/premake-5.0.0-alpha13-linux.tar.gz
dest
:
'
{{home_path}}/ygopro/'
remote_src
:
yes
remote_src
:
true
-
name
:
premake5 gmake
shell
:
./premake5 gmake
args
:
...
...
koishipro2ios.yml
View file @
b930b8f0
...
...
@@ -11,7 +11,7 @@
src
:
/home/nanahira/ygo/koishipro2/koishipro2ios/
dest
:
'
{{
deploy_path
}}'
delete
:
no
recursive
:
yes
recursive
:
true
verify_host
:
no
checksum
:
yes
checksum
:
true
archive
:
no
update_srvpro.yml
View file @
b930b8f0
...
...
@@ -41,7 +41,7 @@
unarchive
:
src
:
https://minio.mycard.moe:9000/nanahira/premake-5.0.0-alpha13-linux.tar.gz
dest
:
'
{{home_path}}/ygopro/'
remote_src
:
yes
remote_src
:
true
-
name
:
ygopro new
shell
:
'
cp
-rf
{{home_path}}/ygopro
{{home_path}}/ygopro-new'
-
name
:
ygopro
...
...
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