41 lines
907 B
YAML
41 lines
907 B
YAML
- name: Install mumble-server package
|
|
apt:
|
|
name: mumble-server
|
|
state: present
|
|
register: murmur_installed
|
|
|
|
- name: Append ssl-cert group to {{ murmur_owner }} user
|
|
user:
|
|
name: "{{ murmur_owner }}"
|
|
state: present
|
|
groups:
|
|
- "{{ acme_ssl_group }}"
|
|
append: yes
|
|
system: yes
|
|
notify: restart murmur
|
|
|
|
- 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
|
|
|
|
- name: Write superuser password to a file
|
|
copy:
|
|
content: "{{ murmur_superuser_password }}"
|
|
dest: /etc/mumble-server.secret
|
|
owner: root
|
|
group: root
|
|
mode: "600"
|
|
when: murmur_superuser_password is defined
|
|
notify: change murmur superuser password
|