{"id":16164170,"url":"https://github.com/tleguern/ansible-role-sourcemod","last_synced_at":"2025-03-18T22:31:23.364Z","repository":{"id":141734668,"uuid":"259719859","full_name":"tleguern/ansible-role-sourcemod","owner":"tleguern","description":"Install and configure SourceMod, the Half-Life 2 engine server modification","archived":false,"fork":false,"pushed_at":"2022-01-27T21:44:25.000Z","size":22,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T00:34:03.056Z","etag":null,"topics":["ansible","ansible-role","sourcemod","steam"],"latest_commit_sha":null,"homepage":"","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tleguern.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-28T18:31:27.000Z","updated_at":"2023-05-12T17:48:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"761fe66d-e68b-4164-a7ee-62aeb3d0270d","html_url":"https://github.com/tleguern/ansible-role-sourcemod","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tleguern%2Fansible-role-sourcemod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tleguern%2Fansible-role-sourcemod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tleguern%2Fansible-role-sourcemod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tleguern%2Fansible-role-sourcemod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tleguern","download_url":"https://codeload.github.com/tleguern/ansible-role-sourcemod/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244318651,"owners_count":20433953,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-role","sourcemod","steam"],"created_at":"2024-10-10T02:45:31.651Z","updated_at":"2025-03-18T22:31:23.353Z","avatar_url":"https://github.com/tleguern.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible Role: sourcemod\n\n[![builds.sr.ht status](https://builds.sr.ht/~tleguern/ansible-role-sourcemod.svg)](https://builds.sr.ht/~tleguern/ansible-role-sourcemod?)\n\nAn Ansible role that installs and configures [SourceMod](https://www.sourcemod.net/), a [Metamod:Source](http://www.metamodsource.net/) plugin.\n\nAutomatic testing is provided using molecule's delegated driver and \u003chttps://builds.sr.ht\u003e.\n\n## Requirements\n\nAn ansible role dedicated to the installation of SteamCMD such as [ansible-steamcmd](https://github.com/tleguern/ansible-steamcmd) or any role providing the `{{ steamcmd_user }}` variable.\n\nAn 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 {{ metamod_source_game }}` handler.\n\nAn ansible role dedicated to the Installation of Metamod:Source such as [ansible-role-metamod-source](https://github.com/tleguern/ansible-role-metamod-source), or any role providing the `{{ metamod_source_install_path }}`,\n\n## Role Variables\n\n| Variable | Description | Default |\n|----------|-------------|---------|\n| `steamcmd_user` | User name for steamcmd | `steam` |\n| `sourcemod_url` | URL pointing to sourcemod releases | `https://sm.alliedmods.net/smdrop` |\n| `sourcemod_branch` | Release branch (should generally be the same as `{{ metamod_source_branch }}` | `1.11` |\n| `metamod_source_install_path` | Installation directory | mandatory |\n| `sourcemod_admins_simple` | SourceMod admin declaration via the flat file format | See bellow |\n| `sourcemod_plugins` | List of plugins to enable or disable | See bellow |\n\n### `sourcemod_admins_simple`\n\nA list of hashes containing the identity and flags of any server administrator.\nOptionnaly immunity levels and password can be suplied.\n\n| Key | Description |\n|-----|-------------|\n| `identity` | A SteamID3 formatted SteamID, a bang-prefixed IP address or a simple name |\n| `flags` | Letter encoded permission levels |\n| `immunity` | Immunity level |\n| `password` | Password, only for somple name `identity` |\n\nMore information [here](https://wiki.alliedmods.net/Adding_Admins_(SourceMod)).\n\nExample:\n\n```\nsourcemod_admins_simple:\n  - identity: STEAM_0:1:16\n    flags: bce\n  - identity: \"!127.0.0.1\"\n    immunity: \"99\"\n    flags: z\n  - identity: BAILOPAN\n    flags: abc\n    password: Gab3n\n```\n\n## `sourcemod_plugins`\n\nAllows to install, remove, enable or disable plugins.\n\n| Key     | Description                            |\n|---------|----------------------------------------|\n| `name`  | The plugin's name without file suffix  |\n| `state` | Only `absent`, `disabled` or `enabled` |\n\nIf the state is either `disabled` or `enabled` and the variable `sourcemod_extra_plugins_directory` is not an empty string the corresponding plugin will be looked for as `{{ sourcemod_extra_plugins_directory }}/{{ plugin.name }}.smx` and uploaded on the remote server.\n\nExample:\n\n```\nsourcemod_plugins:\n  - name: funcommands\n    state: disable\n  - name: unwanted\n    state: absent\n  - name: swapteam\n    state: enabled\n```\n\n## Dependencies\n\nNone\n\n## Example Playbook\n\n```yaml\n- hosts: game\n  vars:\n   sourcemod_admins_simple:\n     - identity: STEAM_0:1:16\n       flags: z\n  roles:\n    - role: ansible-steamcmd\n    - role: ansible-role-cstrike-source\n    - role: ansible-role-metamod-source\n    - role: ansible-role-sourcemod\n```\n\n## License\n\nISC\n\n## Contributing\n\nEither send [send GitHub pull requests](https://github.com/tleguern/ansible-role-sourcemod) or [send patches on SourceHut](https://lists.sr.ht/~tleguern/misc).\n\n## Author Information\n\nTristan Le Guern \u003ctleguern@bouledef.eu\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftleguern%2Fansible-role-sourcemod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftleguern%2Fansible-role-sourcemod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftleguern%2Fansible-role-sourcemod/lists"}