Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tleguern/ansible-role-cstrike-gungame
Ansible role for the Counter-Strike: Source GunGame plugin
https://github.com/tleguern/ansible-role-cstrike-gungame
ansible ansible-role counter-strike-source gungame steam
Last synced: 15 days ago
JSON representation
Ansible role for the Counter-Strike: Source GunGame plugin
- Host: GitHub
- URL: https://github.com/tleguern/ansible-role-cstrike-gungame
- Owner: tleguern
- License: isc
- Created: 2021-10-21T20:11:53.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-01-27T19:37:09.000Z (almost 3 years ago)
- Last Synced: 2024-11-02T09:23:44.560Z (2 months ago)
- Topics: ansible, ansible-role, counter-strike-source, gungame, steam
- Language: Jinja
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible Role: Counter-Strike: Source GunGame mode
An Ansible role that installs, upgrades and configures the gungame mode for Counter-Strike: Source.
## Requirements
An ansible role dedicated to the installation of SteamCMD such as [ansible-steamcmd](https://github.com/tleguern/ansible-steamcmd).
An ansible role dedicated to the Installation of Metamod:Source such as [ansible-role-metamod-source](https://github.com/tleguern/ansible-role-metamod-source).
An ansible role dedicated to the installation of a Source mod such as [ansible-role-cstrike-source](https://github.com/tleguern/ansible-role-cstrike-source) or any role providing the `Restart cstrike-source` handler.
## Role Variables
| Variable | Description | Default |
|----------|-------------|---------|
| `steamcmd_user` | User name for steamcmd | `steam` |
| `gungame_url` | Download mirror | `https://github.com/altexdim/sourcemod-plugin-gungame/archive/refs/heads/master.tar.gz` |
| `gungame_version` | Desired version | `head` |
| `gungame_target` | Archive name | `sourcemod-plugin-gungame-master.tar.gz` |
| `gungame_install_path` | Installation directory | `/home/{{ steamcmd_user }}/cstrike-source/cstrike` |
| `gungame_config_txt` | Global GunGame configuration | `""` |
| `gungame_maps_cfg` | Per map GunGame configuration | `[]` |### `gungame_config_txt`
By default the stock configuration file is kept but it is possible to specify a different one like this:
```yaml
gungame_config_txt: |
"GunGame.Config"
{
"Config"
{
"Enabled" "0"
}
}
```### `gungame_maps_cfg`
Map specific configuration are possible using this variable.
It is a list of dictionary using two keys: `map` and `cfg`.
The first one is the partial or full name of a map and the second the specific configuration.For example the following configuration enable the GunGame mode on every map prefixed with the string `gg`:
```yaml
gungame_maps_cfg:
- map: gg
cfg: |
"GunGame.Config"
{
"Config"
{
"Enabled" "1"
}
}```
## Dependencies
None.
## Example Playbook
```yaml
- hosts: game
pre_tasks:
- package:
name: acl
state: present
roles:
- role: tleguern.steamcmd
- role: tleguern.cstrike-source
- role: tleguern.metamod-source
- role: tleguern.sourcemod
- role: tleguern.cstrike-gungame
```## License
ISC
## Contributing
Either send [send GitHub pull requests](https://github.com/tleguern/ansible-role-cssdm) or [send patches on SourceHut](https://lists.sr.ht/~tleguern/misc).
## Author Information
Tristan Le Guern