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.
19 lines
444 B
19 lines
444 B
2 years ago
|
- 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
|