File tree Expand file tree Collapse file tree 1 file changed +11
-14
lines changed
Expand file tree Collapse file tree 1 file changed +11
-14
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments