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 #!/bin/sh
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 68980A0EA10B4DE8 sudo rm -f /etc/apt/sources.list.d/repo_mongodb_org_apt_ubuntu.list
sudo apt-key adv --keyserver hkps://keyserver.ubuntu.com --refresh-keys

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

@ -7,17 +7,23 @@
tasks: tasks:
# # ------------------------ # ------------------------
# # cp update file mongo keys # cp update file mongo keys
# # ------------------------- # -------------------------
# - name: cp mongo update file - name: cp mongo update file
# become: true become: true
# copy: copy:
# src: "./files/mongo-update.sh" src: "./files/mongo-update.sh"
# dest: /project/mongo-update.sh dest: /project/mongo-update.sh
# owner: docker owner: docker
# group: docker group: docker
# mode: 0755 mode: 0755
# ------------------------
# start update.sh
# -------------------------
- name: start mongo update file
shell: /project/mongo-update.sh
- name: apt mongo key - name: apt mongo key
become: true become: true
@ -31,12 +37,6 @@
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
# # ------------------------
# # start update.sh
# # -------------------------
# - name: start mongo update file
# shell: /project/mongo-update.sh
# ------------------------ # ------------------------
# apt update # apt update
# ------------------------- # -------------------------

Loading…
Cancel
Save