forked from sptmru/asterisk-ansible-playbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
playbook.yaml
25 lines (25 loc) · 972 Bytes
/
playbook.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
- hosts: all
become: true
gather_facts: false
vars:
shell: /bin/bash
asterisk_version: 20-current
freepbx_version: 15.0
number_of_cpu_cores: 2
fail2ban_loglevel: 3
fail2ban_logtarget: /var/log/fail2ban.log
fail2ban_socket: /var/run/fail2ban/fail2ban.sock
failban_ignoreip: 127.0.0.1/8 ::1 4.3.2.1
asterisk_external_ip: 2.4.6.8
asterisk_localnet: 10.0.0.0/8
# if you need any of the modules that are not included by default, add these modules here like that: --enable chan_sip --enable res_http_websocket
asterisk_enable_modules: --enable res_ari --enable chan_mobile --enable chan_ooh323 --enable format_mp3 --enable core-sounds-en-wav --enable moh-opsound-wav --enable extra-sounds-en-wav
roles:
- role: initial
- role: asterisk-prepare
- role: asterisk-install
- role: asterisk-configure
- role: asterisk-start
- role: fail2ban-install
- role: fail2ban-start
- role: freepbx-install