Add Ansible template
This commit is contained in:
parent
1115e86296
commit
fa1a1138d6
22 changed files with 699 additions and 3 deletions
23
inventories/production/group_vars/all.yml
Normal file
23
inventories/production/group_vars/all.yml
Normal file
|
@ -0,0 +1,23 @@
|
|||
# You should configure this for your own area, or use your own NTP server
|
||||
ntp_server: uk.pool.ntp.org
|
||||
|
||||
# Each item in this list will become a PJSIP phone in Asterisk with a SEPMAC
|
||||
# configuration file hosted in TFTP and an entry in the phone directory served
|
||||
# by NGINX.
|
||||
extensions:
|
||||
- number: 1001
|
||||
callername: Phone1
|
||||
context: phones
|
||||
voicemail: 1001
|
||||
password: 1234
|
||||
mac: SEP00000000
|
||||
ipv4_address: 192.168.1.50
|
||||
|
||||
- number: 1002
|
||||
callername: Phone2
|
||||
context: phones
|
||||
voicemail: 1002
|
||||
password: 1234
|
||||
mac: SEP00000001
|
||||
ipv4_address: 192.168.1.51
|
||||
|
3
inventories/production/group_vars/asterisk.yml
Normal file
3
inventories/production/group_vars/asterisk.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
asterisk_version: "22.3.0"
|
||||
asterisk_src_dir: "/usr/local/src/asterisk-{{ asterisk_version }}"
|
||||
asterisk_config_dir: "/etc/asterisk"
|
9
inventories/production/group_vars/tftp.yml
Normal file
9
inventories/production/group_vars/tftp.yml
Normal file
|
@ -0,0 +1,9 @@
|
|||
tftp_root_dir: /srv/tftp
|
||||
|
||||
firmware_files:
|
||||
- term41.default.loads
|
||||
- jar41sip.8-5-2TH1-9.sbn
|
||||
- cnu41.8-5-2TH1-9.sbn
|
||||
- apps41.8-5-2TH1-9.sbn
|
||||
- dsp41.8-5-2TH1-9.sbn
|
||||
- cvm41sip.8-5-2TH1-9.sbn
|
11
inventories/production/hosts.ini
Normal file
11
inventories/production/hosts.ini
Normal file
|
@ -0,0 +1,11 @@
|
|||
[asterisk]
|
||||
# Replace with your actual Asterisk server IP or hostname
|
||||
your-asterisk-hostname ansible_host=your-asterisk-ip-or-hostname
|
||||
|
||||
[nginx]
|
||||
# Replace with your actual Nginx server IP or hostname
|
||||
your-nginx-hostname ansible_host=your-nginx-ip-or-hostname
|
||||
|
||||
[tftp]
|
||||
# Replace with your actual TFTP server IP or hostname
|
||||
your-tftp-hostname ansible_host=your-tftp-ip-or-hostname
|
Loading…
Add table
Add a link
Reference in a new issue