update..
This commit is contained in:
@ -1,4 +1,8 @@
|
||||
# *** ---------------------------------------------- ***
|
||||
# *** ***
|
||||
# {{ ansible_managed }}
|
||||
# *** ***
|
||||
# *** ---------------------------------------------- ***
|
||||
|
||||
#-----------------------------
|
||||
# Daemon
|
||||
|
@ -1,4 +1,4 @@
|
||||
# {{ ansible_managed }}
|
||||
{{ ansible_managed | comment }}
|
||||
|
||||
# This file MUST be edited with the 'visudo' command as root.
|
||||
#
|
||||
|
@ -804,6 +804,49 @@
|
||||
- nc_turn_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=" /ro/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 '/ro/etc/ipt-firewall/main_ipv4.conf' (allow_outbound_streaming)
|
||||
blockinfile:
|
||||
path: /ro/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=" /ro/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: /ro/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
|
||||
# ---
|
||||
|
@ -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
|
||||
# ---
|
||||
|
Reference in New Issue
Block a user