Commit 4bc13c61 authored by ulif's avatar ulif 🐻

Introduce var to enable/disable recordings.

parent 535eaf72
...@@ -13,6 +13,8 @@ ...@@ -13,6 +13,8 @@
- name: Apply local BBB configuration - name: Apply local BBB configuration
hosts: bigbluebutton hosts: bigbluebutton
become: yes become: yes
vars:
enable_recording: false
tasks: tasks:
- name: We are alive - name: We are alive
debug: debug:
...@@ -50,19 +52,19 @@ ...@@ -50,19 +52,19 @@
lineinfile: lineinfile:
path: /usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties path: /usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties
regexp: '^allowStartStopRecording=.*' regexp: '^allowStartStopRecording=.*'
line: 'allowStartStopRecording=false' line: 'allowStartStopRecording={{ enable_recording }}'
- name: disable recording auto start - name: disable recording auto start
lineinfile: lineinfile:
path: /usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties path: /usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties
regexp: '^autoStartRecording=.*' regexp: '^autoStartRecording=.*'
line: 'autoStartRecording=false' line: 'autoStartRecording=true'
- name: disable recording generally, even if record param in api set to record - name: disable recording generally, even if record param in api set to record
lineinfile: lineinfile:
path: /usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties path: /usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties
regexp: '^disableRecordingDefault=.*' regexp: '^disableRecordingDefault=.*'
line: 'disableRecordingDefault=true' line: 'disableRecordingDefault=false'
# #
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment