1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Merge pull request #2901 from holta/asterisk-lint

Lint pbx/tasks/asterisk.yml to a common baseline, as Apache extrication/isolation work continues
This commit is contained in:
A Holt 2021-08-03 11:54:17 -04:00 committed by GitHub
commit 5e7787c0e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,10 +33,10 @@
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:
@ -49,15 +49,15 @@
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: >
@ -72,13 +72,13 @@
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,11 +105,11 @@
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