1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00

Fix and optimize chan_dongle.yml

This commit is contained in:
Anish Mangal 2019-01-19 05:40:51 +00:00 committed by root
parent a8fa325447
commit e7d842ab90

View file

@ -33,13 +33,26 @@
command: "./bootstrap"
args:
chdir: "{{ chan_dongle_src_dir }}"
creates: "{{ chan_dongle_src_dir }}/configure"
- name: chan_dongle - Find out asterisk version
command: "asterisk -V |cut -d ' ' -f 2"
register: asterisk_ver
- name: chan_dongle - Run the configure script
command: "./configure"
command: "./configure --with-astversion={{asterisk_ver.stdout}}"
args:
chdir: "{{ chan_dongle_src_dir }}"
creates: "{{ chan_dongle_src_dir }}/Makefile"
- name: chan_dongle - Run 'make'
command: make
args:
chdir: "{{ chan_dongle_src_dir }}"
creates: "{{ chan_dongle_src_dir }}/chan_dongle.o"
- name: chan_dongle - Run 'make install'
command: make install
args:
chdir: "{{ chan_dongle_src_dir }}"
creates: "/usr/lib/asterisk/modules/chan_dongle.so"