Browse Source

add mongo

master
zeus 4 years ago
parent
commit
23ea8a08cc
  1. 3
      install/usr/share/swarmlab.io/sec/project/courses/mongodb-org-shell/files/mongo-update.sh
  2. 24
      install/usr/share/swarmlab.io/sec/project/courses/mongodb-org-shell/mongodb-org-shell.yml

3
install/usr/share/swarmlab.io/sec/project/courses/mongodb-org-shell/files/mongo-update.sh

@ -1,5 +1,8 @@
#!/bin/sh #!/bin/sh
sudo rm -f /etc/apt/sources.list.d/repo_mongodb_org_apt_ubuntu.list sudo rm -f /etc/apt/sources.list.d/repo_mongodb_org_apt_ubuntu.list
sudo rm -f /etc/apt/sources.list.d/mongodb*.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 656408E390CFB1F5
echo "deb [arch=amd64] http://repo.mongodb.org/apt/ubuntu $(lsb_release -sc)/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org.list

24
install/usr/share/swarmlab.io/sec/project/courses/mongodb-org-shell/mongodb-org-shell.yml

@ -27,17 +27,17 @@
script: script:
cmd: /project/mongo-update.sh cmd: /project/mongo-update.sh
- name: apt mongo key # - name: apt mongo key
become: true # become: true
apt_key: # apt_key:
id: 68980A0EA10B4DE8 # id: 68980A0EA10B4DE8
keyserver: keyserver.ubuntu.com # keyserver: keyserver.ubuntu.com
#
- name: apt mongo repo # - name: apt mongo repo
become: true # become: true
apt_repository: # apt_repository:
repo: deb http://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse # repo: deb http://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse
state: present # state: present
# ------------------------ # ------------------------
# apt update # apt update
@ -65,5 +65,5 @@
vars: vars:
packages: packages:
- build-essential - build-essential
#- mongodb-org-shell - mongodb-org-shell

Loading…
Cancel
Save