|
@ -45,7 +45,9 @@ |
|
|
apt: |
|
|
apt: |
|
|
name: gnupg |
|
|
name: gnupg |
|
|
- name: Import the public key used by the package management system |
|
|
- name: Import the public key used by the package management system |
|
|
command: wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add - |
|
|
apt_key: |
|
|
|
|
|
url: https://www.mongodb.org/static/pgp/server-4.4.asc |
|
|
|
|
|
state: present |
|
|
- name: Create a list file for mongodb |
|
|
- 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 |
|
|
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 |
|
|
update_cache: yes |
|
|