1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00
This commit is contained in:
tim-moody 2022-11-16 17:29:30 -05:00
parent 6333ea1483
commit cd8f599dd7
7 changed files with 12 additions and 53 deletions

View file

@ -2,6 +2,8 @@
Minetest README Minetest README
=============== ===============
11/16/2022 THIS NEEDS REVISING
`Minetest <https://www.minetest.net/>`_ is a `Minecraft <https://en.wikipedia.org/wiki/Minecraft>`_-inspired creative/explorational building blocks game, written from scratch and licensed `Minetest <https://www.minetest.net/>`_ is a `Minecraft <https://en.wikipedia.org/wiki/Minecraft>`_-inspired creative/explorational building blocks game, written from scratch and licensed
under the LGPL (version 2.1 or later). It supports both survival and creative modes along with multiplayer support, dynamic lighting, and an "infinite" map generator. under the LGPL (version 2.1 or later). It supports both survival and creative modes along with multiplayer support, dynamic lighting, and an "infinite" map generator.

View file

@ -1,15 +1,13 @@
# minetest_install: False # Other vars set in: github.com/iiab/iiab/blob/master/vars/default_vars.yml
# minetest_enabled: False
# minetest_port: 30000
# minetest_server_admin: Admin
# minetest_default_game: carbone-ng # only carbone-ng and minetest are supported
# minetest_flat_world: False
# All above are set in: github.com/iiab/iiab/blob/master/vars/default_vars.yml
# If nec, change them by editing /etc/iiab/local_vars.yml prior to installing! # If nec, change them by editing /etc/iiab/local_vars.yml prior to installing!
# These should not be touched unless minetest packages change # These should not be touched unless minetest packages change
minetest_server_bin: /usr/lib/minetest/minetestserver
minetest_config_file: /etc/minetest/minetest.conf minetest_config_file: /etc/minetest/minetest.conf
minetest_world_dir: /library/games/minetest/worlds/world minetest_world_dir: /library/games/minetest/worlds/world
minetest_runas_user: root
minetest_runas_group: root
#minetest_runas_user: Debian-minetest
#minetest_runas_group: games

View file

@ -1,6 +1,3 @@
# Calculate local variables
- include_tasks: calc_vars.yml
- name: Check for Minetest world file ({{ minetest_world_dir }}/world.mt) - name: Check for Minetest world file ({{ minetest_world_dir }}/world.mt)
stat: stat:
path: "{{ minetest_world_dir }}/world.mt" path: "{{ minetest_world_dir }}/world.mt"
@ -14,29 +11,8 @@
# group: root # group: root
# mode: '0755' # mode: '0755'
# rpi only
- include_tasks: rpi_minetest_install.yml
when: not minetest_world.stat.exists and is_raspbian
# not rpi
- include_tasks: minetest_install.yml - include_tasks: minetest_install.yml
when: not minetest_world.stat.exists and not is_raspbian when: not minetest_world.stat.exists
- git:
repo: https://github.com/Calinou/carbone-ng.git
dest: "{{ minetest_game_dir }}"
depth: 1
when: not minetest_world.stat.exists and minetest_default_game == "carbone-ng"
- name: Give Minetest user ownership of carbone-ng
file:
state: directory
path: "{{ minetest_game_dir }}"
recurse: yes
owner: "{{ minetest_runas_user }}"
group: "{{ minetest_runas_group }}"
# mode: 0755
when: minetest_default_game == "carbone-ng"
# Install games # Install games
#- include_tasks: minetest_install_games.yml #- include_tasks: minetest_install_games.yml
@ -63,13 +39,6 @@
url: https://github.com/Uberi/Minetest-WorldEdit/archive/master.zip url: https://github.com/Uberi/Minetest-WorldEdit/archive/master.zip
when: minetest_default_game == "minetest" when: minetest_default_game == "minetest"
- name: Remove mod from carbone-ng that prevents our Admin name
file:
state: absent
path: "{{ minetest_game_dir }}/mods/name_restrictions"
when: minetest_default_game == "carbone-ng"
# RECORD Minetest AS INSTALLED # RECORD Minetest AS INSTALLED
- name: "Set 'minetest_installed: True'" - name: "Set 'minetest_installed: True'"

View file

@ -22,7 +22,7 @@
- block: - block:
- name: Install Minetest if 'minetest_installed' not defined, e.g. in {{ iiab_state_file }} # /etc/iiab/iiab_state.yml - name: Install Minetest if 'minetest_installed' not defined, e.g. in {{ iiab_state_file }} # /etc/iiab/iiab_state.yml
include_tasks: provision.yml # i.e. install.yml in other roles include_tasks: install.yml
when: minetest_installed is undefined when: minetest_installed is undefined
- include_tasks: enable-or-disable.yml - include_tasks: enable-or-disable.yml

View file

@ -1,5 +1,3 @@
# For non-rpi installs
- name: Install Minetest package - name: Install Minetest package
package: package:
name: minetest-server name: minetest-server
@ -35,11 +33,3 @@
mode: 0755 mode: 0755
with_items: with_items:
- "{{ minetest_world_dir }}" - "{{ minetest_world_dir }}"
- name: Change exec line in generated unit file
lineinfile:
path: /lib/systemd/system/minetest-server.service
regexp: "{{ item.regexp }}"
line: "{{ item.line }}"
with_items:
- { regexp: '^ExecStart=/usr/lib/minetest/minetestserver', line: 'ExecStart=/usr/lib/minetest/minetestserver --config /etc/minetest/minetest.conf --logfile /var/log/minetest/minetest.log --world "{{ minetest_world_dir }}"' }