Browse Source

add mongo

master
zeus 4 years ago
parent
commit
78067a5b44
  1. 42
      install/usr/share/swarmlab.io/sec/project/courses/mongodb-org-shell/mongodb-org-shell.yml

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

@ -7,23 +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
# - name: apt mongo key
# # ------------------------
# # cp update file mongo keys
# # -------------------------
# - name: cp mongo update file
# become: true
# apt_key:
# id: 6494C6D6997C215E
# keyserver: keyserver.ubuntu.com
# copy:
# src: "./files/mongo-update.sh"
# dest: /project/mongo-update.sh
# owner: docker
# group: docker
# mode: 0755
- name: apt mongo key
become: true
apt_key:
id: 68980A0EA10B4DE8
keyserver: keyserver.ubuntu.com
- name: apt mongo repo
become: true
@ -31,11 +31,11 @@
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
# # ------------------------
# # start update.sh
# # -------------------------
# - name: start mongo update file
# shell: /project/mongo-update.sh
# ------------------------
# apt update

Loading…
Cancel
Save