Skip to content

Commit f592b5e

Browse files
authored
Update RedHat.yml
1 parent 6e2bbf8 commit f592b5e

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

roles/couchdb/tasks/RedHat.yml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
11
# import repo
22
- name: Add CouchDB repositories when os=cenos
3-
yum_repository:
4-
name: bintray-apache-couchdb-rpm
5-
file: bintray-apache-couchdb-rpm
6-
description: CouchDB RPM Repository
7-
baseurl: http://apache.bintray.com/couchdb-rpm/el$releasever/$basearch/
8-
gpgcheck: no
9-
enabled: yes
3+
shell: |
4+
yum install -y yum-utils
5+
yum-config-manager --add-repo https://couchdb.apache.org/repo/couchdb.repo
6+
yum install -y couchdb
107
when: ansible_distribution == "CentOS"
118

129
- name: Add CouchDB repositories when os=other
13-
yum_repository:
14-
name: bintray-apache-couchdb-rpm
15-
file: bintray-apache-couchdb-rpm
16-
description: CouchDB RPM Repository
17-
baseurl: http://apache.bintray.com/couchdb-rpm/el{{ansible_distribution_major_version}}/$basearch/
18-
gpgcheck: no
19-
enabled: yes
10+
shell: |
11+
sudo apt update && sudo apt install -y curl apt-transport-https gnupg
12+
curl https://couchdb.apache.org/repo/keys.asc | gpg --dearmor | sudo tee /usr/share/keyrings/couchdb-archive-keyring.gpg >/dev/null 2>&1
13+
source /etc/os-release
14+
echo "deb [signed-by=/usr/share/keyrings/couchdb-archive-keyring.gpg] https://apache.jfrog.io/artifactory/couchdb-deb/ ${VERSION_CODENAME} main" | sudo tee /etc/apt/sources.list.d/couchdb.list >/dev/null
15+
apt update
16+
apt install -y couchdb
2017
when: ansible_distribution != "CentOS"
2118

2219
# install couchdb

0 commit comments

Comments
 (0)