mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Lint pbx/tasks/asterisk.yml to a common baseline, as Apache extrication/isolation works continues
This commit is contained in:
parent
3d76c51d3f
commit
61b4d76c74
1 changed files with 18 additions and 18 deletions
|
@ -19,12 +19,12 @@
|
||||||
when: not asterisk_src.stat.exists
|
when: not asterisk_src.stat.exists
|
||||||
|
|
||||||
- name: Asterisk - Create install source directory
|
- name: Asterisk - Create install source directory
|
||||||
file:
|
file:
|
||||||
path: "{{ asterisk_src_dir }}"
|
path: "{{ asterisk_src_dir }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
- name: Asterisk - Extract source
|
- name: Asterisk - Extract source
|
||||||
unarchive:
|
unarchive:
|
||||||
src: "{{ downloads_dir }}/{{ asterisk_src_file }}"
|
src: "{{ downloads_dir }}/{{ asterisk_src_file }}"
|
||||||
dest: "{{ asterisk_src_dir }}"
|
dest: "{{ asterisk_src_dir }}"
|
||||||
owner: root
|
owner: root
|
||||||
|
@ -33,52 +33,52 @@
|
||||||
creates: "{{ asterisk_src_dir }}/Makefile"
|
creates: "{{ asterisk_src_dir }}/Makefile"
|
||||||
|
|
||||||
- name: Asterisk - Download mp3 decoder library into source tree
|
- name: Asterisk - Download mp3 decoder library into source tree
|
||||||
command: "./contrib/scripts/get_mp3_source.sh"
|
command: ./contrib/scripts/get_mp3_source.sh
|
||||||
args:
|
args:
|
||||||
chdir: "{{ asterisk_src_dir }}"
|
chdir: "{{ asterisk_src_dir }}"
|
||||||
creates: "addons/mp3/mpg123.h"
|
creates: addons/mp3/mpg123.h
|
||||||
|
|
||||||
- name: Asterisk - Install aptitude (otherwise install_prereq fails?)
|
- name: Asterisk - Install aptitude (otherwise install_prereq fails?)
|
||||||
package:
|
package:
|
||||||
name: aptitude
|
name: aptitude
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
- name: Asterisk - Ensure all dependencies are resolved - CAN TAKE 5 MIN OR LONGER!
|
- name: Asterisk - Ensure all dependencies are resolved - CAN TAKE 5 MIN OR LONGER!
|
||||||
shell: export DEBIAN_FRONTEND=noninteractive && ./contrib/scripts/install_prereq install
|
shell: export DEBIAN_FRONTEND=noninteractive && ./contrib/scripts/install_prereq install
|
||||||
args:
|
args:
|
||||||
chdir: "{{ asterisk_src_dir }}"
|
chdir: "{{ asterisk_src_dir }}"
|
||||||
|
|
||||||
- name: Asterisk - Run the configure script
|
- name: Asterisk - Run the configure script
|
||||||
command: "./configure --with-jansson-bundled"
|
command: ./configure --with-jansson-bundled
|
||||||
args:
|
args:
|
||||||
chdir: "{{ asterisk_src_dir }}"
|
chdir: "{{ asterisk_src_dir }}"
|
||||||
|
|
||||||
- name: Asterisk - Run make menuselect.makeopts
|
- name: Asterisk - Run make menuselect.makeopts
|
||||||
command: "make menuselect.makeopts"
|
command: make menuselect.makeopts
|
||||||
args:
|
args:
|
||||||
chdir: "{{ asterisk_src_dir }}"
|
chdir: "{{ asterisk_src_dir }}"
|
||||||
creates: "menuselect.makeopts"
|
creates: menuselect.makeopts
|
||||||
|
|
||||||
- name: Asterisk - Do a bit of menuselect configuration
|
- name: Asterisk - Do a bit of menuselect configuration
|
||||||
command: >
|
command: >
|
||||||
menuselect/menuselect --enable app_macro --enable format_mp3
|
menuselect/menuselect --enable app_macro --enable format_mp3
|
||||||
--enable CORE-SOUNDS-EN-WAV --enable CORE-SOUNDS-EN-G722
|
--enable CORE-SOUNDS-EN-WAV --enable CORE-SOUNDS-EN-G722
|
||||||
--enable EXTRA-SOUNDS-EN-WAV --enable EXTRA-SOUNDS-EN-G722 --enable EXTRA-SOUNDS-EN-GSM
|
--enable EXTRA-SOUNDS-EN-WAV --enable EXTRA-SOUNDS-EN-G722 --enable EXTRA-SOUNDS-EN-GSM
|
||||||
--disable-category MENUSELECT_MOH
|
--disable-category MENUSELECT_MOH
|
||||||
args:
|
args:
|
||||||
chdir: "{{ asterisk_src_dir }}"
|
chdir: "{{ asterisk_src_dir }}"
|
||||||
|
|
||||||
- name: Asterisk - Run 'make' - CAN TAKE 30 MIN OR LONGER!
|
- name: Asterisk - Run 'make' - CAN TAKE 30 MIN OR LONGER!
|
||||||
command: make
|
command: make
|
||||||
args:
|
args:
|
||||||
chdir: "{{ asterisk_src_dir }}"
|
chdir: "{{ asterisk_src_dir }}"
|
||||||
creates: "defaults.h"
|
creates: defaults.h
|
||||||
|
|
||||||
- name: Asterisk - Run 'make install' - CAN TAKE 2 MIN OR LONGER!
|
- name: Asterisk - Run 'make install' - CAN TAKE 2 MIN OR LONGER!
|
||||||
command: make install
|
command: make install
|
||||||
args:
|
args:
|
||||||
chdir: "{{ asterisk_src_dir }}"
|
chdir: "{{ asterisk_src_dir }}"
|
||||||
creates: "/usr/sbin/asterisk"
|
creates: /usr/sbin/asterisk
|
||||||
|
|
||||||
- name: Asterisk - Run 'make config'
|
- name: Asterisk - Run 'make config'
|
||||||
command: make config
|
command: make config
|
||||||
|
@ -105,14 +105,14 @@
|
||||||
name: asterisk
|
name: asterisk
|
||||||
group: asterisk
|
group: asterisk
|
||||||
groups: audio,dialout
|
groups: audio,dialout
|
||||||
home: "/var/lib/asterisk"
|
home: /var/lib/asterisk
|
||||||
system: yes
|
system: yes
|
||||||
append: yes
|
append: yes
|
||||||
|
|
||||||
- name: 'Asterisk - Set ownership of 5 directories: /etc/asterisk, /var/lib/asterisk, /var/log/asterisk, /var/spool/asterisk, /usr/lib/asterisk'
|
- name: "Asterisk - Set ownership of 5 directories: /etc/asterisk, /var/lib/asterisk, /var/log/asterisk, /var/spool/asterisk, /usr/lib/asterisk (asterisk:asterisk)"
|
||||||
file:
|
file:
|
||||||
dest: "{{ item }}"
|
dest: "{{ item }}"
|
||||||
owner: asterisk
|
owner: asterisk
|
||||||
group: asterisk
|
group: asterisk
|
||||||
recurse: yes
|
recurse: yes
|
||||||
with_items:
|
with_items:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue