Commit 560c560d by ChongmingDu

mongo mod

parent e9d373e2
......@@ -52,16 +52,4 @@ sudo yum install -y yum-utils device-mapper-persistent-data lvm2
sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
sudo yum makecache fast
sudo yum install docker-ce-17.12.1.ce-1.el7.centos -y
systemctl start docker&&systemctl enable docker
# Install mongod4
# cat << EOF > /etc/yum.repos.d/mongo4.repo
# [mongodb-org-4.0]
# name=MongoDB Repository
# baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.0/x86_64/
# gpgcheck=1
# enabled=1
# gpgkey=https://www.mongodb.org/static/pgp/server-4.0.asc
# EOF
# sudo yum install -y mongodb-org &>/dev/null
# systemctl start mongod.service&&systemctl enable mongod.service
\ No newline at end of file
systemctl start docker&&systemctl enable docker
\ No newline at end of file
[mongodb-org-4.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.0/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.0.asc
\ No newline at end of file
---
- name: "restart mongo"
service: name=mongod state=restarted enabled=yes
\ No newline at end of file
---
- name: "add mongo repo"
copy:
src: mongo4.repo
dest: /etc/yum.repos.d/mongo4.repo
- name: "install mongo"
shell: yum install mongodb-org -y
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment