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 @@
become
:
true
apt
:
update_cache
:
true
state
:
latest
name
:
wget,git,build-essential,libreadline-dev,libsqlite3-dev,libevent-dev,p7zip-full,liblua5.3-dev
when
:
ansible_os_family == 'Debian'
-
name
:
epel
7
become
:
true
yum
:
state
:
latest
update_cache
:
true
name
:
epel-release,curl
when
:
ansible_os_family == 'RedHat' and ansible_distribution_major_version|int <=
7
-
name
:
yum
become
:
true
yum
:
state
:
latest
update_cache
:
true
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
-
name
:
epel
8
become
:
true
dnf
:
state
:
latest
name
:
epel-release
when
:
ansible_os_family == 'RedHat' and ansible_distribution_major_version|int >=
8
-
name
:
dnf
become
:
true
dnf
:
state
:
latest
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
#- name: lua from source
# include_tasks: tasks/lua-from-source.yml
# when: ansible_os_family != 'Debian'
-
name
:
pre data
git
:
repo
:
'
https://e.coding.net/mercury233/ygopro-pre-data.git'
...
...
@@ -66,16 +64,38 @@
dest
:
'
{{home_path}}/ygopro/'
creates
:
'
{{home_path}}/ygopro/premake5'
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
shell
:
./premake5 gmake
args
:
chdir
:
'
{{home_path}}/ygopro'
when
:
'
not
no_lua_safe
'
when
:
not no_lua_safe and ansible_os_family == 'Debian
'
-
name
:
premake5 gmake unsafe
shell
:
env YGOPRO_NO_LUA_SAFE=1 ./premake5 gmake
args
:
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
make
:
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