lefos 3 years ago
parent
commit
d30c2b235d
  1. 12
      mongo.yml

12
mongo.yml

@ -41,10 +41,16 @@
# - curl # - curl
# - lynx # - lynx
# - ruby # - ruby
- name: Install gnupg
apt:
name: gnupg
- name: Import the public key used by the package management system - name: Import the public key used by the package management system
apt_key: keyserver=hkp://keyserver.ubuntu.com:80 id=7F0CEB10 state=present command: wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
- name: Add MongoDB repository - name: Create a list file for mongodb
apt_repository: repo='deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' state=present command: echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
update_cache: yes
# - name: Add MongoDB repository
# apt_repository: repo='deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' state=present
- name: install mongodb - name: install mongodb
apt: pkg=mongodb-org state=latest update_cache=yes apt: pkg=mongodb-org state=latest update_cache=yes
# notify: # notify:

Loading…
Cancel
Save