Installs teamspeak-server as docker container.
- Docker
- Systemd
- python-docker package
- Pull official docker image
- Create volume paths for docker container
- Setup systemd unit file
- Start/Restart service
Variable | Type | Mandatory? | Default | Description |
---|---|---|---|---|
teamspeak_version | text | no | 3.3.1 | Teamspeak server version |
teamspeak_interface | ip address | no | 0.0.0.0 | Mapped network for web-interface ports |
teamspeak_port | port | no | Default port (UDP incomming): 9987 | |
teamspeak_filestransfer_port | port | no | Filetransfer port (TCP incomming): 30033 | |
teamspeak_serverquery_port | port | no | Serverquery port (TCP incomming): 10011 | |
teamspeak_data_volume | path | yes | Path to data volume | |
teamspeak_log_volume | path | yes | Path to log volume | |
teamspeak_files_volume | path | yes | Path to files volume |
- name: install-teamspeak
src: https://github.com/borisskert/ansible-teamspeak.git
scm: git
Usage (without parameters):
- hosts: servers
roles:
- role: install-teamspeak
teamspeak_accept_license: yes
Usage (with parameters):
- hosts: servers
roles:
- role: install-teamspeak
teamspeak_version: '3.12'
teamspeak_data_volume: /srv/teamspeak/data
teamspeak_log_volume: /var/log/teamspeak
teamspeak_files_volume: /srv/teamspeak/files
teamspeak_interface: 0.0.0.0
teamspeak_port: 9987
teamspeak_filestransfer_port: 30033
teamspeak_serverquery_port: 10011
teamspeak_accept_license: true
Requirements:
molecule test
molecule test --scenario-name vagrant --parallel
I recommend to use pyenv for local testing. Within the Github Actions pipeline I use my own molecule Docker image.