From d30c2b235d08d9bfcffe7c93b558ed6997b75a20 Mon Sep 17 00:00:00 2001 From: lefos Date: Mon, 1 Nov 2021 01:18:28 +0200 Subject: [PATCH] asd --- mongo.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/mongo.yml b/mongo.yml index 09640d9..6301eee 100644 --- a/mongo.yml +++ b/mongo.yml @@ -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: