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