From 7c0d099662ad1ffe1ec325bbe9955c407206c24a Mon Sep 17 00:00:00 2001 From: Fernando Llaca Date: Thu, 9 May 2019 23:03:24 +0200 Subject: [PATCH] Fix wrong major version parse. Reverted from 659299e01fadc831665c0a31f3f7993fa6cc95d5 --- tasks/install.debian.yml | 2 +- tasks/install.redhat.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/install.debian.yml b/tasks/install.debian.yml index 5e121db1..a20fe6ed 100644 --- a/tasks/install.debian.yml +++ b/tasks/install.debian.yml @@ -9,7 +9,7 @@ - name: Establish some role-related facts set_fact: mongodb_is_systemd: "{{ sbin_init.stat.islnk is defined and sbin_init.stat.islnk }}" - mongodb_major_version: "{{ mongodb_version[0:4] }}" + mongodb_major_version: "{{ mongodb_version[0:3] }}" - name: Add APT key apt_key: diff --git a/tasks/install.redhat.yml b/tasks/install.redhat.yml index 0095ab51..8c596ddc 100644 --- a/tasks/install.redhat.yml +++ b/tasks/install.redhat.yml @@ -2,7 +2,7 @@ - name: Establish some role-related facts set_fact: - mongodb_major_version: "{{ mongodb_version[0:4] }}" + mongodb_major_version: "{{ mongodb_version[0:3] }}" - name: Install EPEL release repository package: @@ -14,7 +14,7 @@ src: mongodb.repo.j2 dest: /etc/yum.repos.d/mongodb.repo mode: 0644 - with_items: "{{ mongodb_version[0:4] }}" + with_items: "{{ mongodb_version[0:3] }}" when: mongodb_package == 'mongodb-org' - name: Install MongoDB package