Coder Social home page Coder Social logo

ansible-role-lgsm's Introduction

LGSM

Installs and configures LinuxGSM servers.

Role Variables

# LGSM server name (game name). REQUIRED
lgsm_server_name: ""
# LGSM server file name (used for executing commands). REQUIRED
lgsm_server_file_name: ""
# LGSM server group name
lgsm_server_group: "lgsm"
# LGSM server user name
lgsm_server_user: "lgsm"
# LGSM server config configuration (uncomment to set)
# lgsm_server_common_config: ""
# LGSM server specific configuration (uncomment to set)
# lgsm_server_specific_config: ""
# LGSM commands to run after initialization of the server file
lgsm_server_commands:
  - "auto-install"
  - "start"
  - "details"
  - "stop"
# LGSM dependencies to install
lgsm_dependencies:
  - mailutils
  - postfix
  - curl
  - wget
  - file
  - bzip2
  - gzip
  - unzip
  - bsdmainutils
  - python
  - util-linux
  - ca-certificates
  - binutils
  - bc
  - jq
  - tmux
  - lib32gcc1
  - libstdc++6
  - libstdc++6:i386

NOTE: The Ansible user needs to be able to become lgsm_server_user from lgsm_server_group.

Example Playbook

Creates a Killing Floor 2 server as /home/lgsm/kf2-mainserver.

- hosts: lgsm-servers
  roles:
     - { role: lgsm, lgsm_server_name:'kf2server', lgsm_server_file_name: 'kf2-mainserver' }

License

MIT

Author Information

This role was created in 2018 by Ruben Harutyunyan.

ansible-role-lgsm's People

Contributors

vagr9k avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

reelsense bogarin

ansible-role-lgsm's Issues

Create lgsm server error - Do NOT run this script as root

I'm having a problem executing linuxgsm.sh via Ansible. Are there changes needed for the current version of LGSM?

TASK [lgsm : Create insserver server] ************************************************************************
task path: /home/user/git/ansible/roles/lgsm/tasks/main.yml:19
fatal: [192.168.1.123]: FAILED! => {"changed": true, "cmd": "/home/lgsm/linuxgsm.sh  insserver", "delta": "0:00:00.012081", "end": "2020-07-11 22:44:37.882162", "msg": "non-zero return code", "rc": 1, "start": "2020-07-11 22:44:37.870081", "stderr": "", "stderr_lines": [], "stdout": "[ FAIL ] Do NOT run this script as root!", "stdout_lines": ["[ FAIL ] Do NOT run this script as root!"]}

Relevant code:

- name: "Create {{ lgsm_server_name }} server"
command: "/home/{{ lgsm_server_user }}/linuxgsm.sh {{ lgsm_server_name }}"
args:
chdir: "/home/{{ lgsm_server_user }}"
creates: "/home/{{ lgsm_server_user }}/ {{ lgsm_server_name }}"
register: command_output
become: yes
become_user: "{{ lgsm_server_user }}"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.