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

Merge pull request #416 from jvonau/mongo2

Sync from jvonau:mongo2
This commit is contained in:
A Holt 2020-09-01 21:14:08 -04:00 committed by GitHub
commit 9913c3e90f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 4 deletions

View file

@ -71,7 +71,7 @@
args:
warn: false
- name: Add mongodb repo for Debian 10 (only amd64 support available)
- name: Use mongodb-org's Debian buster 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
@ -79,19 +79,26 @@
when: is_debian_10 and (ansible_architecture == "x86_64")
# Debian 10 aarch64 might work below but is blocked in main.yml
- name: Add mongodb repo for RaspOS-aarch64
- name: Use mongodb-org's Ubuntu bionic 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)
- name: Add mongodb repo for Ubuntu 64bit only
- name: Use mongodb-org's Ubuntu focal repo for Mint 20 - 64bit only
apt_repository:
repo: deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse
state: present
filename: mongodb-org
when: is_mint_20
- name: Use mongodb-org's Ubuntu repo for Ubuntu all - 64bit only
apt_repository:
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
when: is_ubuntu and not is_mint
- name: "Install packages: mongodb-org, mongodb-org-server"
package:

View file

@ -704,6 +704,10 @@ is_ubuntu_18: False
is_ubuntu_17: False
is_ubuntu_16: False
is_mint: False # subset of is_ubuntu
is_mint_20: False
is_debian: False # Covers both: Debian, Raspbian (Raspberry Pi OS)
is_debian_10: False
is_debian_9: False

View file

@ -1,6 +1,9 @@
is_debuntu: True
is_ubuntu: True
is_ubuntu_20: True
is_mint: True
is_mint_20: True
# 2019-03-23: These apply if-only-if named_install and/or dhcpd_install are True
# (This is quite rare now that vars/default_vars.yml sets dnsmasq_install: True)