1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00

wording notes is_raspbian_10 only

This commit is contained in:
Jerry Vonau 2020-08-26 15:08:07 -05:00
parent f85b3fd5b9
commit 30e798675c

View file

@ -11,35 +11,35 @@
# mongodb_stretch_3_0_14_tools.zip IS REALLY 3.0.15 (tools)
- block:
- name: Create dir /tmp/mongodb-3.0.1x (raspbian)
- name: Create dir /tmp/mongodb-3.0.1x (aarch32)
file:
path: /tmp/mongodb-3.0.1x
state: directory
- name: Download & unzip 20MB http://download.iiab.io/packages/mongodb_stretch_3_0_14_core.zip to /tmp/mongodb-3.0.1x (raspbian)
- name: Download & unzip 20MB http://download.iiab.io/packages/mongodb_stretch_3_0_14_core.zip to /tmp/mongodb-3.0.1x (aarch32)
unarchive:
remote_src: yes
src: "{{ iiab_download_url }}/mongodb_stretch_3_0_14_core.zip"
dest: /tmp/mongodb-3.0.1x
- name: Install (move) its 3 CORE binaries from /tmp/mongodb-3.0.1x/core to /usr/bin (raspbian)
- name: Install (move) its 3 CORE binaries from /tmp/mongodb-3.0.1x/core to /usr/bin (aarch32)
shell: mv /tmp/mongodb-3.0.1x/core/* /usr/bin
- 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)
- 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 (aarch32)
unarchive:
remote_src: yes
src: "{{ iiab_download_url }}/mongodb_stretch_3_0_14_tools.zip"
dest: /tmp/mongodb-3.0.1x
- name: Install (move) its 9 TOOLS binaries from /opt/iiab/downloads/mongodb-3.0.1x/tools to /usr/bin (raspbian)
- name: Install (move) its 9 TOOLS binaries from /opt/iiab/downloads/mongodb-3.0.1x/tools to /usr/bin (aarch32)
shell: mv /tmp/mongodb-3.0.1x/tools/* /usr/bin
- name: Create Linux group mongodb (raspbian)
- name: Create Linux group mongodb (aarch32)
group:
name: mongodb
state: present
- name: Create Linux user mongodb (raspbian)
- name: Create Linux user mongodb (aarch32)
user:
name: mongodb
group: mongodb # primary group
@ -47,7 +47,7 @@
home: /var/lib/mongodb
shell: /usr/sbin/nologin
- name: Install /etc/mongod.conf from template
- name: Install /etc/mongod.conf from template (aarch32)
template:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
@ -60,28 +60,33 @@
# end block
when: not (ansible_architecture == "amd64" or ansible_architecture == "aarch64")
# 32 bit OS's get caught above should handle aarch32 including 32-bit ubuntu
# from https://ubuntu.com/download/raspberry-pi. 20.4-32bit might fail untested
# 32bit intel might puke as this was orginally deployed for raspbian. Haven't
# see bootable 32bit intel installers for a while now.
# 64 bit OS's proceed below.
- block:
- name: Add mongodb.org signing key
- name: Add mongodb.org signing key (only 64-bit support available)
shell: wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | apt-key add -
args:
warn: false
- name: Add mongodb repo for Debian 10 amd64
- name: Add mongodb repo for Debian 10 (only amd64 support available)
apt_repository:
repo: deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 main
state: present
filename: mongodb-org
when: is_debian_10 and (ansible_architecture == "amd64")
- name: Add mongodb repo for Ubuntu 18 all or Raspbian-arm64
# Debian 10 aarch64 might work below but is blocked in main.yml
- name: Add mongodb repo for Ubuntu 18 64bit or Raspbian-aarch64
apt_repository:
repo: deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.4 multiverse
state: present
filename: mongodb-org
when: (ansible_architecture == "aarch64" and is_debian_10) or is_ubuntu_18
when: (ansible_architecture == "aarch64" and is_raspbian_10) or is_ubuntu_18
- name: Add mongodb repo for Ubuntu 20
- name: Add mongodb repo for Ubuntu 20 64bit
apt_repository:
repo: deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse
state: present