Task used to execute Asterisk PBX server.
The task runs the Asterisk PBX
server in a daemon
container. One may
provide a few custom configuration files, which are by default mounted in the
/etc/asterisk
directory.
The variables overwritten by default by the task are:
image
: default image to run isyaroslavonline/asterisk
Additional settings that can be passed to the task:
config_files
: optional, list of paths to configuration files. List item should be formed asasterisk config:local config
. For example, if you've got a dialplan config in scenario dir, calledextensions.conf
, taskconfig_files
param will look like:
config_files:
- "extensions.conf:extensions.conf"
Imagine, you've got subfolder, named asterisk
, in scenario dir. Execute an asterisk task:
- name: Asterisk
type: asterisk
config_files:
- "ari.conf:asterisk/ari.conf"
- "http.conf:asterisk/http.conf"
- "keys/cert.pem:asterisk/keys/cert.pem"
- "keys/key.pem:asterisk/keys/key.pem"
ready:
wait: 3
- name: Curl
image: alpine/curl
args:
- "-f"
- "-k"
- "-I"
- "https://{{ asterisk_ip }}:8089/httpstatus"
require:
Ready: Asterisk