๐Ÿ“— Ansible playbooks and roles for building an idempotent, interconnected and scalable infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
ansible-playbooks/roles/asterisk/tasks/asterisk_handlers.yml

19 lines
444 B

- block:
- name: restart asterisk
service:
name: asterisk
state: restarted
when: item.item.action is not defined
- name: reload dialplan
command:
cmd: 'asterisk -rx "dialplan reload"'
when: item.item.action == 'reload dialplan'
- name: reload configs
command:
cmd: 'asterisk -rx "core reload"'
when: item.item.action == 'reload configs'
when: item is defined