Skip to content

ra-beer/ansible-role-minecraft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minecraft

Install a vanilla minecraft server if none is present. Set up backup jobs. if server is present, create a backup and update the server.

Requirements

Java Ansible 2.9 or later Linux Distribution Root-access

Role Variables

# defaults file for minecraft
minecraft_user: minecraft
minecraft_group: minecraft
server_install_path: /home/minecraft/vanilla
minecraft_home_path: /home/minecraft
server_backup_path: /home/minecraft/backup
minecraft_max_memory: 4096M
minecraft_initial_memory: 1024M

# server properties
minecraft_server_motd: vanilla
server_difficulty: easy
max_players: 8
game_mode: survival
pvp: "true"
server_whitelist: "true"

Example Playbook

---
- name: Server set up
  hosts: localhost
  roles:
    - name: minecraft
      role: minecraft
      vars:
        minecraft_server_motd: my_minecraft_server

License

MIT

Author Information

ra-rau

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published