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
3ba7a111
Commit
3ba7a111
authored
Dec 02, 2019
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
finish
parent
457c44a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
16 deletions
+40
-16
install_srvpro.yml
install_srvpro.yml
+40
-16
No files found.
install_srvpro.yml
View file @
3ba7a111
...
@@ -5,24 +5,36 @@
...
@@ -5,24 +5,36 @@
# home_path: ~
# home_path: ~
# fork: mycard
# fork: mycard
tasks
:
tasks
:
#- name: curl
-
name
:
curl
# become: yes
# apt:
# update_cache: true
# state: latest
# name: curl,apt-transport-https
# when: "ansible_distribution != 'CentOS'"
#- name: node source
# become: yes
# shell: 'curl -sL https://deb.nodesource.com/setup_12.x | bash -'
# when: "ansible_distribution != 'CentOS' and "
-
name
:
apt
become
:
yes
become
:
yes
apt
:
apt
:
update_cache
:
true
update_cache
:
true
state
:
latest
state
:
latest
name
:
curl,
wget,git,build-essential,libreadline-dev,libsqlite3-dev,libevent-dev,mono-complete,npm,redis-server,p7zip-full
name
:
curl,
apt-transport-https
when
:
"
ansible_distribution
!=
'CentOS'"
when
:
"
ansible_distribution
!=
'CentOS'"
-
name
:
node source
become
:
yes
shell
:
'
curl
-sL
https://deb.nodesource.com/setup_12.x
|
bash
-'
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
apt
:
#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
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
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
-
name
:
mono yum key
become
:
yes
become
:
yes
rpm_key
:
rpm_key
:
...
@@ -41,13 +53,19 @@
...
@@ -41,13 +53,19 @@
become
:
true
become
:
true
yum
:
yum
:
state
:
latest
state
:
latest
name
:
epel-release
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"
when
:
"
ansible_distribution
==
'CentOS'
and
ansible_distribution_major_version|int
<=
7"
-
name
:
yum
-
name
:
yum
become
:
yes
become
:
yes
yum
:
yum
:
state
:
latest
state
:
latest
name
:
curl,wget,git,nodejs,npm,gcc,gcc-c++,sqlite-devel,readline-devel,openssl-devel,libevent-devel,mono-complete,redis,p7zip,p7zip-plugins
update_cache
:
true
name
:
wget,git,nodejs,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"
when
:
"
ansible_distribution
==
'CentOS'
and
ansible_distribution_major_version|int
<=
7"
-
name
:
epel
8
-
name
:
epel
8
become
:
true
become
:
true
...
@@ -59,7 +77,7 @@
...
@@ -59,7 +77,7 @@
become
:
true
become
:
true
dnf
:
dnf
:
state
:
latest
state
:
latest
name
:
curl,wget,git,nodejs,npm,gcc,gcc-c++,
sqlite-devel,readline-devel,openssl-devel,libevent-devel,mono-complete,redis,p7zip,p7zip-plugins
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"
when
:
"
ansible_distribution
==
'CentOS'
and
ansible_distribution_major_version|int
==
8"
-
name
:
npm
-
name
:
npm
become
:
yes
become
:
yes
...
@@ -163,3 +181,9 @@
...
@@ -163,3 +181,9 @@
state
:
link
state
:
link
src
:
'
{{home_path}}/windbot'
src
:
'
{{home_path}}/windbot'
dest
:
'
{{home_path}}/ygopro-server/windbot'
dest
:
'
{{home_path}}/ygopro-server/windbot'
-
name
:
stop firewalld
become
:
true
systemd
:
name
:
firewalld
state
:
stopped
when
:
"
ansible_distribution
==
'CentOS'"
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