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: tasks:
# ------------------------ # # ------------------------
# cp update file mongo keys # # cp update file mongo keys
# ------------------------- # # -------------------------
- name: cp mongo update file # - 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
# become: true # become: true
# apt_key: # copy:
# id: 6494C6D6997C215E # src: "./files/mongo-update.sh"
# keyserver: keyserver.ubuntu.com # 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 - name: apt mongo repo
become: true become: true
@ -31,11 +31,11 @@
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 # # start update.sh
# ------------------------- # # -------------------------
- name: start mongo update file # - name: start mongo update file
shell: /project/mongo-update.sh # shell: /project/mongo-update.sh
# ------------------------ # ------------------------
# apt update # apt update

Loading…
Cancel
Save