75 lines
1.6 KiB
YAML
75 lines
1.6 KiB
YAML
- name: Install mumble-server package
|
|
apt:
|
|
pkg: mumble-server
|
|
state: present
|
|
register: murmur_installed
|
|
|
|
- name: Install ICE dependencies for Python
|
|
apt:
|
|
pkg:
|
|
- python3-zeroc-ice
|
|
- zeroc-ice-compilers
|
|
state: present
|
|
|
|
- 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
|
|
|
|
- name: Create mumble-ice directory
|
|
file:
|
|
path: /opt/mice/
|
|
state: directory
|
|
owner: root
|
|
group: root
|
|
mode: "755"
|
|
|
|
- name: Copy mice Python script
|
|
copy:
|
|
src: scripts/mice.py
|
|
dest: /opt/mice/mice.py
|
|
owner: root
|
|
group: root
|
|
mode: "755"
|
|
register: _murmur_mice_copied
|
|
|
|
- name: Compile Murmur.ice slice file
|
|
command: |-
|
|
slice2py --checksum \
|
|
-I/usr/local/share/Ice \
|
|
-I/usr/share/Ice/slice \
|
|
-I/usr/share/ice/slice \
|
|
/usr/share/slice/Murmur.ice
|
|
args:
|
|
chdir: /opt/mice/
|
|
when: _murmur_mice_copied is changed |