1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Merge pull request #2495 from jvonau/mongo2

various fixes
This commit is contained in:
A Holt 2020-08-27 21:45:48 -04:00 committed by GitHub
commit 5529c72766
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 10 deletions

View file

@ -59,7 +59,7 @@
# end block
when: not (ansible_architecture == "x86_64" or ansible_architecture == "aarch64")
when: not (ansible_userspace_architecture == "x86_64" or ansible_userspace_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
@ -76,22 +76,22 @@
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 == "x86_64")
when: is_debian_10 and (ansible_userspace_architecture == "x86_64")
# Debian 10 aarch64 might work below but is blocked in main.yml
- name: Add mongodb repo for Ubuntu 18 64bit or Raspbian-aarch64
- name: Add mongodb repo for RaspOS-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_raspbian_10) or is_ubuntu_18
when: (ansible_userspace_architecture == "aarch64" and is_raspbian_10)
- name: Add mongodb repo for Ubuntu 20 64bit
- name: Add mongodb repo for Ubuntu 64bit only
apt_repository:
repo: deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse
repo: deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu {{ ansible_distribution_release }}/mongodb-org/4.4 multiverse
state: present
filename: mongodb-org
when: is_ubuntu_20
when: is_ubuntu
- name: "Install packages: mongodb-org, mongodb-org-server"
package:
@ -108,7 +108,7 @@
line: ' port: 27018'
# end block
when: (ansible_architecture == "aarch64") or (ansible_architecture == "x86_64")
when: (ansible_userspace_architecture == "aarch64") or (ansible_userspace_architecture == "x86_64")
# 2. CONFIGURE MongoDB FOR IIAB

View file

@ -94,13 +94,11 @@
src: '{{ vector_map_path }}/installer/planet_z0-z6_2019.mbtiles'
dest: '{{ vector_map_path }}/viewer/tiles/planet_z0-z6_2019.mbtiles'
state: link
when: osm_vector_maps_enabled | bool
- name: Copy the map abbreviated satellite images
get_url:
url: "{{ map_catalog_url }}/satellite_z0-z6_v3.mbtiles"
dest: '{{ vector_map_path }}/viewer/tiles/satellite_z0-z6_v3.mbtiles'
when: osm_vector_maps_enabled | bool
- name: Fetch the javascript bundle for map installer
get_url:

View file

@ -80,6 +80,21 @@
state: stopped
enabled: no
- name: Disable & Stop stock 'postgresql@11-main.service' systemd service - debian-10
systemd:
name: postgresql@11-main.service
state: stopped
enabled: no
# when: is_debian_10
when: is_debian_10 and not is_raspbian
- name: Disable & Stop stock 'postgresql@' systemd service - debian-10
systemd:
name: postgresql@
enabled: no
# when: is_debian_10
when: is_debian_10 and not is_raspbian
# RECORD PostgreSQL AS INSTALLED