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

mongodb - use ansible_distribution_release to track ubuntu

This commit is contained in:
Jerry Vonau 2020-08-27 19:19:48 -05:00
parent b6640f813d
commit 6f49cef3d9

View file

@ -79,19 +79,19 @@
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 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_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: