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.
37 lines
1.3 KiB
37 lines
1.3 KiB
---
|
|
|
|
- name: Configure Tucny Asterisk repository
|
|
yum_repository:
|
|
file: asterisk
|
|
name: asterisk
|
|
description: Asterisk {{ ast_version }} Packages @ tucny.com
|
|
baseurl: https://ast.tucny.com/repo/asterisk-{{ ast_version }}/el$releasever/$basearch/
|
|
gpgcheck: 1
|
|
gpgkey: https://ast.tucny.com/repo/RPM-GPG-KEY-dtucny
|
|
tags: repo
|
|
|
|
- name: Configure Tucny common repo for Asterisk
|
|
yum_repository:
|
|
file: asterisk
|
|
name: asterisk-common
|
|
description: Asterisk Asterisk Common Requirement Packages @ tucny.com
|
|
baseurl: https://ast.tucny.com/repo/asterisk-common/el$releasever/$basearch/
|
|
gpgcheck: 1
|
|
gpgkey: https://ast.tucny.com/repo/RPM-GPG-KEY-dtucny
|
|
tags: repo
|
|
|
|
# asterisk core sounds aren't available yet for el8, so also configure el7 repo
|
|
# on el8 for now
|
|
- name: Configure Tucny common repo for Asterisk el7
|
|
yum_repository:
|
|
file: asterisk
|
|
name: asterisk-common-el7
|
|
description: Asterisk Asterisk Common Requirement Packages @ tucny.com
|
|
baseurl: https://ast.tucny.com/repo/asterisk-common/el7/$basearch/
|
|
includepkgs:
|
|
- asterisk-sounds-core*
|
|
- asterisk-moh-opsound*
|
|
gpgcheck: 1
|
|
gpgkey: https://ast.tucny.com/repo/RPM-GPG-KEY-dtucny
|
|
state: "{{ ansible_distribution_major_version is version('8', '==') | ternary('present','absent') }}"
|
|
tags: repo
|
|
|