https://github.com/mahdi22/ansible-install-asterisk
Role Ansible Installation Asterisk on CentOS 7, CentOS 8 ,configuration of the cdr connection to mysql or Mssql database, configuration firewalld and fail2ban
https://github.com/mahdi22/ansible-install-asterisk
ansible asterisk callcenter cdr cdr-database centos fail2ban firewall linux linux-server mssql redhat sql telephony voip
Last synced: 5 months ago
JSON representation
Role Ansible Installation Asterisk on CentOS 7, CentOS 8 ,configuration of the cdr connection to mysql or Mssql database, configuration firewalld and fail2ban
- Host: GitHub
- URL: https://github.com/mahdi22/ansible-install-asterisk
- Owner: mahdi22
- Created: 2020-09-28T14:54:02.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-27T13:26:03.000Z (almost 5 years ago)
- Last Synced: 2025-03-31T14:03:52.235Z (7 months ago)
- Topics: ansible, asterisk, callcenter, cdr, cdr-database, centos, fail2ban, firewall, linux, linux-server, mssql, redhat, sql, telephony, voip
- Language: HTML
- Homepage: https://galaxy.ansible.com/mahdi22/install_asterisk
- Size: 13.7 KB
- Stars: 5
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ansible-install-asterisk
This is an ansible role to install Asterisk on Redhat/CentOS 7 and 8 distribution, installed from cd image version minimal install.Specifically, the responsibilities of this role are to:- Update server and reboot
- Install Asterisk dependency
- Install Dahdi package from source
- Install Asterisk Package from source
- Install libpri from source
- Configure Fail2ban
- Condigure Firewalld
- Configure Selinux
- Configure Asterisk CDR ODBC (optional)
- Configure Asterisk# Requirements
- CentOS 7.x
- CentOS 8.x
- Ansible >= 2.7
- Asterisk 12
- Asterisk 13
- Asterisk 14# Installation
ansible-galaxy install mahdi22.ansible_install_asterisk
# Role Variables
file: defaults/main.yml
Set configure_cdr_odbc: true to configure asterisk CDR ODBC. Only ODBC supported with this role:
- Mysql/MariaDB
- MSSQL
Set configure_cdr_odbc: false to not configure asterisk CDR ODBC.
Example:
```yaml
configure_cdr_odbc: true
```
file: vars/main.yml
* line 57
- variable name: Driver
- variable value: MSSQL # MSSQL if your cdr satabase server is MSSQL server
- variable value: MYSQL # MYSQL if your cdr database server is Mysql Server or Mariadb Server
* line 58
- variable name: SQL_HOST
- variable value: localhost # Replace localhost with you database server name or IP address
* line 59
- variable name: SQL_USER
- variable value: dbuser # Replace dbuser with you sql user
* line 60
- variable name: SQL_PASSWORD
- variable value: dbpassword # Replace dbpassword with sql user password
* line 61
- variable name: SQL_DATABASE
- variable value: asterisk # Replace asterisk with the cdr database name
* line 62
- variable name: SQL_TABLE
- variable value: cdr # Replace cdr with your cdr table name# Example Playbook
```sh
- hosts: servers
roles:
- role: mahdi22.asterisk
become: yes
```
# Tests
This role was tested on Redhat end CentOS verion 7 and 8