diff --git a/mongo.yml b/mongo.yml index 6301eee..6c000e2 100644 --- a/mongo.yml +++ b/mongo.yml @@ -45,7 +45,9 @@ apt: name: gnupg - 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 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