create helper script to manage Murmur
This commit is contained in:
@@ -1,9 +1,16 @@
|
||||
- name: Install mumble-server package
|
||||
apt:
|
||||
name: mumble-server
|
||||
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 }}"
|
||||
@@ -38,3 +45,31 @@
|
||||
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
|
||||
chmod: "755"
|
||||
|
||||
- name: Copy mice Python script
|
||||
copy:
|
||||
src: scripts/mice.py
|
||||
dest: /opt/mice/mice.py
|
||||
owner: root
|
||||
group: root
|
||||
chmod: "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
|
||||
Reference in New Issue
Block a user