Adding multiples ansible roles, playbooks and inventory
This commit is contained in:
11
roles/steamcmd/tasks/install_gameserver.yml
Normal file
11
roles/steamcmd/tasks/install_gameserver.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
- name: Create specific {{ steam_cmd_game_name }} server directory
|
||||
ansible.builtin.file:
|
||||
path: "{{ steamcmd_game_server_path }}"
|
||||
state: directory
|
||||
mode: 755
|
||||
|
||||
- name: Install game server from steamcmd
|
||||
ansible.builtin.shell: /usr/games/steamcmd +force_install_dir "{{ steamcmd_game_server_path }}" +login anonymous +app_update "{{ steamcmd_game_server_id }}" +quit
|
||||
args:
|
||||
executable: /bin/bash
|
||||
Reference in New Issue
Block a user