Browse Source

add mongo

master
zeus 4 years ago
parent
commit
478dfdd606
  1. 3
      install/usr/share/swarmlab.io/sec/project/courses/mongodb-org-shell/files/mongo-update.sh
  2. 34
      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,6 +1,5 @@
#!/bin/sh
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 68980A0EA10B4DE8
sudo apt-key adv --keyserver hkps://keyserver.ubuntu.com --refresh-keys
sudo rm -f /etc/apt/sources.list.d/repo_mongodb_org_apt_ubuntu.list

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

@ -7,17 +7,23 @@
tasks:
# # ------------------------
# # cp update file mongo keys
# # -------------------------
# - name: cp mongo update file
# become: true
# copy:
# src: "./files/mongo-update.sh"
# dest: /project/mongo-update.sh
# owner: docker
# group: docker
# mode: 0755
# ------------------------
# cp update file mongo keys
# -------------------------
- name: cp mongo update file
become: true
copy:
src: "./files/mongo-update.sh"
dest: /project/mongo-update.sh
owner: docker
group: docker
mode: 0755
# ------------------------
# start update.sh
# -------------------------
- name: start mongo update file
shell: /project/mongo-update.sh
- name: apt mongo key
become: true
@ -31,12 +37,6 @@
repo: deb http://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse
state: present
# # ------------------------
# # start update.sh
# # -------------------------
# - name: start mongo update file
# shell: /project/mongo-update.sh
# ------------------------
# apt update
# -------------------------

Loading…
Cancel
Save