From 6f49cef3d9ae81f823dc3c138d033687adee0e51 Mon Sep 17 00:00:00 2001 From: Jerry Vonau Date: Thu, 27 Aug 2020 19:19:48 -0500 Subject: [PATCH] mongodb - use ansible_distribution_release to track ubuntu --- roles/mongodb/tasks/install.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/roles/mongodb/tasks/install.yml b/roles/mongodb/tasks/install.yml index a31396a54..6fdbc4a34 100644 --- a/roles/mongodb/tasks/install.yml +++ b/roles/mongodb/tasks/install.yml @@ -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: