update..
This commit is contained in:
@ -818,8 +818,8 @@
|
||||
shell: grep -q -E "^nc_turn_server_ips=" /etc/ipt-firewall/main_ipv6.conf
|
||||
register: nc_turn_service_ipv6_present
|
||||
when: main_ipv4_exists.stat.exists
|
||||
failed_when: "nc_turn_service_ipv4_present.rc > 1"
|
||||
changed_when: "nc_turn_service_ipv4_present.rc > 0"
|
||||
failed_when: "nc_turn_service_ipv6_present.rc > 1"
|
||||
changed_when: "nc_turn_service_ipv6_present.rc > 0"
|
||||
|
||||
- name: Adjust file '/etc/ipt-firewall/main_ipv6.conf' (jitsi service)
|
||||
blockinfile:
|
||||
@ -844,6 +844,60 @@
|
||||
- nc_turn_service_ipv6_present is changed
|
||||
|
||||
|
||||
|
||||
# ---
|
||||
# DHCP Client
|
||||
# ---
|
||||
|
||||
- name: Check if String 'dhcp_client_ifs=..' (IPv4) is present
|
||||
shell: grep -q -E "^dhcp_client_ifs=" /etc/ipt-firewall/main_ipv4.conf
|
||||
register: dhcp_client_ifs_ipv4_present
|
||||
when: main_ipv4_exists.stat.exists
|
||||
failed_when: "dhcp_client_ifs_ipv4_present.rc > 1"
|
||||
changed_when: "dhcp_client_ifs_ipv4_present.rc > 0"
|
||||
|
||||
- name: Adjust file '/etc/ipt-firewall/main_ipv4.conf' (dhclient service)
|
||||
blockinfile:
|
||||
path: /etc/ipt-firewall/main_ipv4.conf
|
||||
insertafter: '^#?\s*dhcp_server_ifs'
|
||||
block: |
|
||||
|
||||
# DHCP Client
|
||||
#
|
||||
# Comma seperated list of Interface, which are dhcp clients
|
||||
#
|
||||
dhcp_client_ifs=""
|
||||
|
||||
marker: "# Marker set by modify-ipt-server.yml ( dhclient service)"
|
||||
when:
|
||||
- main_ipv4_exists.stat.exists
|
||||
- dhcp_client_ifs_ipv4_present is changed
|
||||
|
||||
- name: Check if String 'dhcp_client_ifs=..' (IPv6) is present
|
||||
shell: grep -q -E "^dhcp_client_ifs=" /etc/ipt-firewall/main_ipv6.conf
|
||||
register: dhcp_client_ifs_ipv6_present
|
||||
when: main_ipv4_exists.stat.exists
|
||||
failed_when: "dhcp_client_ifs_ipv6_present.rc > 1"
|
||||
changed_when: "dhcp_client_ifs_ipv6_present.rc > 0"
|
||||
|
||||
- name: Adjust file '/etc/ipt-firewall/main_ipv6.conf' (dhclient service)
|
||||
blockinfile:
|
||||
path: /etc/ipt-firewall/main_ipv6.conf
|
||||
insertafter: '^#?\s*dhcp_server_ifs'
|
||||
block: |
|
||||
|
||||
# DHCP Client
|
||||
#
|
||||
# Comma seperated list of Interface, which are dhcp clients
|
||||
#
|
||||
dhcp_client_ifs=""
|
||||
|
||||
marker: "# Marker set by modify-ipt-server.yml (dhclient service)"
|
||||
when:
|
||||
- main_ipv6_exists.stat.exists
|
||||
- dhcp_client_ifs_ipv6_present is changed
|
||||
|
||||
|
||||
# ---
|
||||
# Remove Marker set by blockinfile
|
||||
# ---
|
||||
|
Reference in New Issue
Block a user