From 72866c76aadeeb8abbcec497bff1caa2e69958c4 Mon Sep 17 00:00:00 2001 From: Anish Mangal Date: Fri, 18 Jan 2019 16:53:42 +0000 Subject: [PATCH] asterisk.yml, optimze --- roles/pbx/tasks/asterisk.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/roles/pbx/tasks/asterisk.yml b/roles/pbx/tasks/asterisk.yml index 61cb27b6d..1cb89ddfa 100644 --- a/roles/pbx/tasks/asterisk.yml +++ b/roles/pbx/tasks/asterisk.yml @@ -30,6 +30,7 @@ owner: root group: root extra_opts: [--strip-components=1] + creates: "{{ asterisk_src_dir }}/Makefile" - name: Asterisk - Download mp3 decoder library into source tree command: "./contrib/scripts/get_mp3_source.sh" @@ -50,12 +51,14 @@ - name: Asterisk - Run the configure script command: "./configure" args: - chdir: "{{ asterisk_src_dir }}" + chdir: "{{ asterisk_src_dir }}" + creates: "config.log" - name: Asterisk - Run make menuselect.makeopts command: "make menuselect.makeopts" args: chdir: "{{ asterisk_src_dir }}" + creates: "menuselect.makeopts" - name: Asterisk - Do a bit of menuselect configuration command: > @@ -70,21 +73,13 @@ command: make args: chdir: "{{ asterisk_src_dir }}" + creates: "defaults.h" - name: Asterisk - install command: make install args: chdir: "{{ asterisk_src_dir }}" - -- name: Asterisk - install config - command: make config - args: - chdir: "{{ asterisk_src_dir }}" - -- name: Asterisk - install samples - command: make samples - args: - chdir: "{{ asterisk_src_dir }}" + creates: "/usr/sbin/asterisk" - name: Asterisk - ldconfig command: ldconfig