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
348b2e87
Commit
348b2e87
authored
May 13, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
srvpro
parent
17d0b323
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
7 deletions
+44
-7
install_srvpro.yml
install_srvpro.yml
+27
-7
tasks/lua-from-source.yml
tasks/lua-from-source.yml
+17
-0
No files found.
install_srvpro.yml
View file @
348b2e87
...
@@ -16,35 +16,33 @@
...
@@ -16,35 +16,33 @@
become
:
true
become
:
true
apt
:
apt
:
update_cache
:
true
update_cache
:
true
state
:
latest
name
:
wget,git,build-essential,libreadline-dev,libsqlite3-dev,libevent-dev,p7zip-full,liblua5.3-dev
name
:
wget,git,build-essential,libreadline-dev,libsqlite3-dev,libevent-dev,p7zip-full,liblua5.3-dev
when
:
ansible_os_family == 'Debian'
when
:
ansible_os_family == 'Debian'
-
name
:
epel
7
-
name
:
epel
7
become
:
true
become
:
true
yum
:
yum
:
state
:
latest
update_cache
:
true
update_cache
:
true
name
:
epel-release,curl
name
:
epel-release,curl
when
:
ansible_os_family == 'RedHat' and ansible_distribution_major_version|int <=
7
when
:
ansible_os_family == 'RedHat' and ansible_distribution_major_version|int <=
7
-
name
:
yum
-
name
:
yum
become
:
true
become
:
true
yum
:
yum
:
state
:
latest
update_cache
:
true
update_cache
:
true
name
:
wget,git,gcc,gcc-c++,make,sqlite-devel,readline-devel,openssl-devel,libevent-devel,p7zip,p7zip-plugins,tar,unzip
name
:
wget,git,gcc,gcc-c++,make,sqlite-devel,readline-devel,openssl-devel,libevent-devel,p7zip,p7zip-plugins,tar,unzip
when
:
ansible_os_family == 'RedHat' and ansible_distribution_major_version|int <=
7
when
:
ansible_os_family == 'RedHat' and ansible_distribution_major_version|int <=
7
-
name
:
epel
8
-
name
:
epel
8
become
:
true
become
:
true
dnf
:
dnf
:
state
:
latest
name
:
epel-release
name
:
epel-release
when
:
ansible_os_family == 'RedHat' and ansible_distribution_major_version|int >=
8
when
:
ansible_os_family == 'RedHat' and ansible_distribution_major_version|int >=
8
-
name
:
dnf
-
name
:
dnf
become
:
true
become
:
true
dnf
:
dnf
:
state
:
latest
name
:
curl,wget,gcc,gcc-c++,make,sqlite-devel,readline-devel,openssl-devel,libevent-devel,p7zip,p7zip-plugins,tar,unzip
name
:
curl,wget,gcc,gcc-c++,make,sqlite-devel,readline-devel,openssl-devel,libevent-devel,p7zip,p7zip-plugins,tar,unzip
when
:
ansible_os_family == 'RedHat' and ansible_distribution_major_version|int >=
8
when
:
ansible_os_family == 'RedHat' and ansible_distribution_major_version|int >=
8
#- name: lua from source
# include_tasks: tasks/lua-from-source.yml
# when: ansible_os_family != 'Debian'
-
name
:
pre data
-
name
:
pre data
git
:
git
:
repo
:
'
https://e.coding.net/mercury233/ygopro-pre-data.git'
repo
:
'
https://e.coding.net/mercury233/ygopro-pre-data.git'
...
@@ -66,16 +64,38 @@
...
@@ -66,16 +64,38 @@
dest
:
'
{{home_path}}/ygopro/'
dest
:
'
{{home_path}}/ygopro/'
creates
:
'
{{home_path}}/ygopro/premake5'
creates
:
'
{{home_path}}/ygopro/premake5'
remote_src
:
true
remote_src
:
true
-
name
:
download lua
unarchive
:
src
:
https://cdn01.moecube.com/nanahira/lua-5.3.6.tar.gz
dest
:
/tmp/
creates
:
/tmp/lua-5.3.6
remote_src
:
true
when
:
ansible_os_family != 'Debian'
-
name
:
move lua
shell
:
'
cp
-rf
/tmp/lua-5.3.6/src
{{home_path}}/ygopro/lua
;
cp
-rf
{{home_path}}/ygopro/premake/lua/premake4.lua
{{home_path}}/ygopro/lua/'
args
:
creates
:
'
{{home_path}}/ygopro/lua/premake4.lua'
when
:
ansible_os_family != 'Debian'
-
name
:
premake5 gmake
-
name
:
premake5 gmake
shell
:
./premake5 gmake
shell
:
./premake5 gmake
args
:
args
:
chdir
:
'
{{home_path}}/ygopro'
chdir
:
'
{{home_path}}/ygopro'
when
:
'
not
no_lua_safe
'
when
:
not no_lua_safe and ansible_os_family == 'Debian
'
-
name
:
premake5 gmake unsafe
-
name
:
premake5 gmake unsafe
shell
:
env YGOPRO_NO_LUA_SAFE=1 ./premake5 gmake
shell
:
env YGOPRO_NO_LUA_SAFE=1 ./premake5 gmake
args
:
args
:
chdir
:
'
{{home_path}}/ygopro'
chdir
:
'
{{home_path}}/ygopro'
when
:
'
no_lua_safe'
when
:
no_lua_safe and ansible_os_family == 'Debian'
-
name
:
premake5 gmake in-built lua
shell
:
env YGOPRO_BUILD_LUA=1 ./premake5 gmake
args
:
chdir
:
'
{{home_path}}/ygopro'
when
:
not no_lua_safe and ansible_os_family != 'Debian'
-
name
:
premake5 gmake in-built lua unsafe
shell
:
env YGOPRO_BUILD_LUA=1 YGOPRO_NO_LUA_SAFE=1 ./premake5 gmake
args
:
chdir
:
'
{{home_path}}/ygopro'
when
:
no_lua_safe and ansible_os_family != 'Debian'
-
name
:
build
-
name
:
build
make
:
make
:
chdir
:
'
{{home_path}}/ygopro/build'
chdir
:
'
{{home_path}}/ygopro/build'
...
...
tasks/lua-from-source.yml
0 → 100644
View file @
348b2e87
-
name
:
download lua
unarchive
:
src
:
https://cdn01.moecube.com/nanahira/lua-5.3.6.tar.gz
dest
:
/tmp/
creates
:
/tmp/lua-5.3.6
remote_src
:
true
-
name
:
lua make linux
make
:
chdir
:
/tmp/lua-5.3.6
target
:
linux
params
:
NUM_THREADS
:
'
{{ansible_processor_vcpus}}'
-
name
:
lua make install
become
:
true
make
:
chdir
:
/tmp/lua-5.3.6
target
:
install
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