Giter VIP home page Giter VIP logo

mahdi22 / ansible-install-asterisk Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 3.0 14 KB

Role Ansible Installation Asterisk on CentOS 7, CentOS 8 ,configuration of the cdr connection to mysql or Mssql database, configuration firewalld and fail2ban

Home Page: https://galaxy.ansible.com/mahdi22/install_asterisk

HTML 100.00%
cdr cdr-database asterisk voip linux ansible firewall fail2ban callcenter linux-server redhat sql mssql centos telephony

ansible-install-asterisk's Introduction

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:
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

- hosts: servers
  roles:
    - role: mahdi22.asterisk
      become: yes

Tests

This role was tested on Redhat end CentOS verion 7 and 8

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.