siw36.ansible_steamcmd
ansible-steamcmd
Description
This Ansible role helps you install or update SteamCMD, a command-line version of Steam.
With this role, SteamCMD can be used by all users with sudo rights.
SteamCMD commands will always run as a system user named steam
.
This same steam
user should also run any game servers.
Get this role
To install the role, run:
ansible-galaxy install --roles-path ./roles/ siw36.ansible_steamcmd
Example Playbook
To install SteamCMD on all hosts in the game-servers
group, use the following playbook:
- hosts: game-servers
roles:
- siw36.ansible-steamcmd
Usage after installation
To update SteamCMD and exit:
sudo steamcmd +quit
To install a game server, follow these steps:
sudo mkdir /home/steam/<game_name>
sudo chown steam:steam /home/steam/<game_name>
sudo steamcmd +login anonymous +force_install_dir /home/steam/<game_name> +app_update <app_id> +quit
Requirements
The user on the remote host must be able to run sudo
commands without needing to enter a password.
License
This software is licensed under the GNU General Public License v3.0.
Author Information
This role was created by Robin 'siw36' Klussmann in July 2019.
Installa
ansible-galaxy install siw36.ansible_steamcmd
Licenza
gpl-3.0
Download
587
Proprietario
Platform & DevOps Engineer