This commit is contained in:
2021-07-08 18:56:07 +02:00
parent bec58dbf36
commit ebc9d1303e
6 changed files with 112 additions and 45 deletions

View File

@ -935,6 +935,49 @@
- bigbluebutton_service_ipv6_present is changed
# ---
# Allow Outbound Streamin / Echo360 Video Streaming
# ---
- name: Check if String 'allow_outbound_streaming..' (IPv4) is present
shell: grep -q -E "^allow_outbound_streaming=" /etc/ipt-firewall/main_ipv4.conf
register: allow_outbound_streaming_ipv4_present
when: main_ipv4_exists.stat.exists
failed_when: "allow_outbound_streaming_ipv4_present.rc > 1"
changed_when: "allow_outbound_streaming_ipv4_present.rc > 0"
- name: Adjust file '/etc/ipt-firewall/main_ipv4.conf' (allow_outbound_streaming)
blockinfile:
path: /etc/ipt-firewall/main_ipv4.conf
insertafter: '^#?\s*allow_mumble_request_out'
block: |
allow_outbound_streaming=true
allow_echo360_video_streaming=true
marker: "# Marker set by modify-ipt-gateway.yml (allow_outbound_streaming)"
when:
- main_ipv4_exists.stat.exists
- allow_outbound_streaming_ipv4_present is changed
- name: Check if String 'allow_outbound_streaming..' (IPv6) is present
shell: grep -q -E "^allow_outbound_streaming=" /etc/ipt-firewall/main_ipv6.conf
register: allow_outbound_streaming_ipv6_present
when: main_ipv6_exists.stat.exists
failed_when: "allow_outbound_streaming_ipv6_present.rc > 1"
changed_when: "allow_outbound_streaming_ipv6_present.rc > 0"
- name: Adjust file '/etc/ipt-firewall/main_ipv6.conf' (allow_outbound_streaming)
blockinfile:
path: /etc/ipt-firewall/main_ipv6.conf
insertafter: '^#?\s*allow_mumble_request_out'
block: |
allow_outbound_streaming=true
allow_echo360_video_streaming=true
marker: "# Marker set by modify-ipt-gateway.yml (allow_outbound_streaming)"
when:
- main_ipv6_exists.stat.exists
- allow_outbound_streaming_ipv6_present is changed
# ---
# Remove Marker set by blockinfile
# ---