mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Update ansible calls playbooks
Fixes issue where cgrates role would attempt to run setup scripts for postgres, when postgres is not installed.
This commit is contained in:
committed by
Dan Christian Bogos
parent
c91fbafe36
commit
f87e52cf63
@@ -2,9 +2,16 @@
|
||||
- name: Set up environment in order to run call tests for Asterisk
|
||||
hosts: all
|
||||
roles:
|
||||
- ../../roles/go
|
||||
- ../../roles/cgrates
|
||||
- ../../roles/asterisk
|
||||
- ../../roles/go
|
||||
- role: ../../roles/cgrates
|
||||
vars:
|
||||
cgrates_dbs:
|
||||
- mysql
|
||||
cgrates_dependencies:
|
||||
- git
|
||||
- redis-server
|
||||
- mariadb-server
|
||||
- role: ../../roles/pjsua
|
||||
vars:
|
||||
pjsua_version: '2.9'
|
||||
|
||||
@@ -12,6 +12,13 @@
|
||||
- name: Install and config CGRateS
|
||||
ansible.builtin.import_role:
|
||||
name: ../../roles/cgrates
|
||||
vars:
|
||||
cgrates_dbs:
|
||||
- mysql
|
||||
cgrates_dependencies:
|
||||
- git
|
||||
- redis-server
|
||||
- mariadb-server
|
||||
|
||||
- name: Unzip FreeSWITCH config
|
||||
become: yes
|
||||
@@ -35,13 +42,13 @@
|
||||
become: yes
|
||||
shell: 'sudo rm -rf *'
|
||||
args:
|
||||
chdir: '/etc/freeswitch'
|
||||
chdir: /etc/freeswitch
|
||||
|
||||
- name: Copy our custom config for FreeSWITCH in /etc/freeswitch
|
||||
become: yes
|
||||
shell: 'sudo cp -r {{ cgrates_dir }}/data/tutorial_tests/fs_evsock/freeswitch/etc/freeswitch/* /etc/freeswitch'
|
||||
args:
|
||||
chdir: '/etc/freeswitch'
|
||||
chdir: /etc/freeswitch
|
||||
|
||||
- name: Configure PJSUA
|
||||
ansible.builtin.import_role:
|
||||
|
||||
@@ -2,11 +2,15 @@
|
||||
- hosts: all
|
||||
roles:
|
||||
- ../../roles/kamailio
|
||||
|
||||
- ../../roles/go
|
||||
|
||||
- ../../roles/cgrates
|
||||
|
||||
- role: ../../roles/cgrates
|
||||
vars:
|
||||
cgrates_dbs:
|
||||
- mysql
|
||||
cgrates_dependencies:
|
||||
- git
|
||||
- redis-server
|
||||
- mariadb-server
|
||||
- role: ../../roles/pjsua
|
||||
vars:
|
||||
pjsua_version: '2.9'
|
||||
|
||||
Reference in New Issue
Block a user