From 39cd30548c5be9be9c01874ab5a2325b82df2ba1 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 21 May 2020 17:00:01 +0000 Subject: [PATCH] More doc cleanup: rpi -> raspbian in mongodb/tasks/install.yml --- roles/mongodb/tasks/install.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/roles/mongodb/tasks/install.yml b/roles/mongodb/tasks/install.yml index 7fdbb1c6c..d0e17d32a 100644 --- a/roles/mongodb/tasks/install.yml +++ b/roles/mongodb/tasks/install.yml @@ -1,6 +1,6 @@ # 1. INSTALL MongoDB PACKAGES OR BINARIES -- name: "Install packages: mongodb, mongodb-server (not rpi)" +- name: "Install packages: mongodb, mongodb-server (not raspbian)" package: name: - mongodb-server @@ -9,8 +9,8 @@ when: internet_available and not is_raspbian # 2019-02-02: Sugarizer with Node.js 10.x requires MongoDB 2.6+ so -# https://andyfelong.com/2017/08/mongodb-3-0-14-for-raspbian-stretch/ -# is being used on RPi, all I found! (Raspbian's apt pkg is MongoDB 2.4.14) +# https://andyfelong.com/2017/08/mongodb-3-0-14-for-raspbian-stretch/ is +# being used on Raspbian, all I found! (Raspbian's apt pkg is MongoDB 2.4.14) # # mongodb_stretch_3_0_14_core.zip (20M) & mongodb_stretch_3_0_14_tools.zip (15M) # were backed up from andyfelong.com to http://download.iiab.io/packages/ @@ -18,50 +18,50 @@ # CLARIF: mongodb_stretch_3_0_14_core.zip IS IN FACT 3.0.14 (core) BUT... # mongodb_stretch_3_0_14_tools.zip IS REALLY 3.0.15 (tools) -- name: Create dir /tmp/mongodb-3.0.1x (rpi) +- name: Create dir /tmp/mongodb-3.0.1x (raspbian) file: path: /tmp/mongodb-3.0.1x state: directory when: internet_available and is_raspbian -- name: Download & unzip 20MB http://download.iiab.io/packages/mongodb_stretch_3_0_14_core.zip to /tmp/mongodb-3.0.1x (rpi) +- name: Download & unzip 20MB http://download.iiab.io/packages/mongodb_stretch_3_0_14_core.zip to /tmp/mongodb-3.0.1x (raspbian) unarchive: remote_src: yes src: "{{ iiab_download_url }}/mongodb_stretch_3_0_14_core.zip" dest: /tmp/mongodb-3.0.1x when: internet_available and is_raspbian -- name: Install (move) its 3 CORE binaries from /tmp/mongodb-3.0.1x/core to /usr/bin (rpi) +- name: Install (move) its 3 CORE binaries from /tmp/mongodb-3.0.1x/core to /usr/bin (raspbian) shell: mv /tmp/mongodb-3.0.1x/core/* /usr/bin when: internet_available and is_raspbian -- name: Download & unzip 15MB http://download.iiab.io/packages/mongodb_stretch_3_0_14_tools.zip [IN FACT THIS ONE'S 3.0.15] to /tmp/mongodb-3.0.1x (rpi) +- name: Download & unzip 15MB http://download.iiab.io/packages/mongodb_stretch_3_0_14_tools.zip [IN FACT THIS ONE'S 3.0.15] to /tmp/mongodb-3.0.1x (raspbian) unarchive: remote_src: yes src: "{{ iiab_download_url }}/mongodb_stretch_3_0_14_tools.zip" dest: /tmp/mongodb-3.0.1x when: internet_available and is_raspbian -- name: Install (move) its 9 TOOLS binaries from /opt/iiab/downloads/mongodb-3.0.1x/tools to /usr/bin (rpi) +- name: Install (move) its 9 TOOLS binaries from /opt/iiab/downloads/mongodb-3.0.1x/tools to /usr/bin (raspbian) shell: mv /tmp/mongodb-3.0.1x/tools/* /usr/bin when: internet_available and is_raspbian # OLD WAY / MUCH SLOWER: had put unnec duplicate copies in /opt/iiab/downloads/mongodb-3.0.1x # -#- name: Create dir /opt/iiab/downloads/mongodb-3.0.1x (rpi) +#- name: Create dir /opt/iiab/downloads/mongodb-3.0.1x (raspbian) # file: # path: "{{ downloads_dir }}/mongodb-3.0.1x" # state: directory # when: internet_available and is_raspbian # -#- name: Download & unzip MongoDB 3.0.14's 3 core binaries to /opt/iiab/downloads/mongodb-3.0.1x (rpi) +#- name: Download & unzip MongoDB 3.0.14's 3 core binaries to /opt/iiab/downloads/mongodb-3.0.1x (raspbian) # unarchive: # remote_src: yes # src: "{{ iiab_download_url }}/mongodb_stretch_3_0_14_core.zip" # dest: "{{ downloads_dir }}/mongodb-3.0.1x" # when: internet_available and is_raspbian # -#- name: Install (copy) 3 binaries from /opt/iiab/downloads/mongodb-3.0.1x/core to /usr/bin (rpi) +#- name: Install (copy) 3 binaries from /opt/iiab/downloads/mongodb-3.0.1x/core to /usr/bin (raspbian) # copy: # src: "{{ item }}" # dest: /usr/bin @@ -69,14 +69,14 @@ # - "{{ downloads_dir }}/mongodb-3.0.1x/core/*" # when: internet_available and is_raspbian # -#- name: Download & unzip MongoDB 3.0.15's 9 tools binaries to /opt/iiab/downloads/mongodb-3.0.1x (rpi) +#- name: Download & unzip MongoDB 3.0.15's 9 tools binaries to /opt/iiab/downloads/mongodb-3.0.1x (raspbian) # unarchive: # remote_src: yes # src: "{{ iiab_download_url }}/mongodb_stretch_3_0_14_tools.zip" # dest: "{{ downloads_dir }}/mongodb-3.0.1x" # when: internet_available and is_raspbian # -#- name: Install (copy) 9 binaries from /opt/iiab/downloads/mongodb-3.0.1x/tools to /usr/bin (rpi) +#- name: Install (copy) 9 binaries from /opt/iiab/downloads/mongodb-3.0.1x/tools to /usr/bin (raspbian) # copy: # src: "{{ item }}" # dest: /usr/bin @@ -84,13 +84,13 @@ # - "{{ downloads_dir }}/mongodb-3.0.1x/tools/*" # when: internet_available and is_raspbian -- name: Create Linux group mongodb (rpi) +- name: Create Linux group mongodb (raspbian) group: name: mongodb state: present when: is_raspbian | bool -- name: Create Linux user mongodb (rpi) +- name: Create Linux user mongodb (raspbian) user: name: mongodb group: mongodb # primary group