ansible-role-mumble/tasks/murmur.yml

36 lines
877 B
YAML

- name: Install mumble-server package
apt:
name: mumble-server
state: present
register: murmur_installed
- name: Copy Murmur config file
template:
src: mumble-server.ini.j2
dest: /etc/mumble-server.ini
owner: root
group: "{{ murmur_group }}"
mode: "640"
notify: restart murmur
- name: Start mumble-server service
service:
name: mumble-server
enabled: yes
state: started
# TODO: Handle superuser password
# - name: Write superuser password to a file
# copy:
# content: "{{ murmur_superuser_password }}"
# dest: /etc/mumble-superuser
# owner: root
# group: root
# mode: "600"
# when: murmur_superuser_password is defined
# notify: set superuser password
# - name: set superuser password
# command: murmurd -ini /etc/mumble-server.ini -supw "{{ murmur_superuser_password }}"
# failed_when: False