43 lines
1.3 KiB
YAML
43 lines
1.3 KiB
YAML
---
|
|
|
|
- name: Ensure /opt/freeswitch/etc/freeswitch/sip_profiles/external dir exists
|
|
file:
|
|
path: "/opt/freeswitch/etc/freeswitch/sip_profiles/external"
|
|
state: directory
|
|
|
|
- name: Upload ext_sipgate.xml config to /opt/freeswitch/etc/freeswitch/sip_profiles/external/sipgate.xml
|
|
copy:
|
|
src: ext_sipgate.xml
|
|
dest: /opt/freeswitch/etc/freeswitch/sip_profiles/external/sipgate.xml
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
|
|
- name: Ensure /opt/freeswitch/etc/freeswitch/dialplan/public dir exists
|
|
file:
|
|
path: "/opt/freeswitch/etc/freeswitch/dialplan/public"
|
|
state: directory
|
|
|
|
- name: Upload pub_sipgate.xml config to /opt/freeswitch/etc/freeswitch/dialplan/public/sipgate.xml
|
|
copy:
|
|
src: pub_sipgate.xml
|
|
dest: /opt/freeswitch/etc/freeswitch/dialplan/public/sipgate.xml
|
|
owner: freeswitch
|
|
group: daemon
|
|
mode: 0644
|
|
|
|
- name: Set defaultDialAccessNumber number in file bigbluebutton.properties
|
|
ansible.builtin.lineinfile:
|
|
path: /home/core/Scripte/bigbluebutton.properties
|
|
### line to be searched & matched
|
|
regexp: '{{ item.From }}'
|
|
### line to be in placed
|
|
line: '{{ item.To }}'
|
|
state: present
|
|
backrefs: yes
|
|
backup: yes
|
|
|
|
with_items:
|
|
- { From: '^defaultDialAccessNumber=(.*)$', To: '{{ defaultDialAccessNumber }}'}
|
|
|
|
... |