Skip to content

Commit

Permalink
Fix wrong major version parse.
Browse files Browse the repository at this point in the history
Reverted from 659299e
  • Loading branch information
fllaca committed May 9, 2019
1 parent d7ba98a commit 7c0d099
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tasks/install.debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions tasks/install.redhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 7c0d099

Please sign in to comment.