Skip to content

Commit a5a4da3

Browse files
authored
role mongodb_repository: add support of ARM architecture by using ansible_architecture variable instead of string 'x86_64' (#724)
1 parent e7679c9 commit a5a4da3

File tree

1 file changed

+1
-1
lines changed
  • roles/mongodb_repository/defaults

1 file changed

+1
-1
lines changed

roles/mongodb_repository/defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ debian:
99
apt_repository_repo: "deb{{ ' [ arch=amd64,arm64 ]' if ansible_facts.distribution == 'Ubuntu' else '' }} https://repo.mongodb.org/apt/{{ ansible_facts.distribution|lower }} {{ ansible_facts.distribution_release }}/mongodb-org/{{ mongodb_version }} {{ 'multiverse' if ansible_facts.distribution == 'Ubuntu' else 'main' }}"
1010
redhat:
1111
rpm_key_key: "https://www.mongodb.org/static/pgp/server-{{ mongodb_version }}.asc"
12-
yum_baseurl: "https://repo.mongodb.org/yum/{{ 'amazon' if ansible_distribution == 'Amazon' else 'redhat' }}/{{ ansible_facts.distribution_major_version }}/mongodb-org/{{ mongodb_version }}/x86_64/"
12+
yum_baseurl: "https://repo.mongodb.org/yum/{{ 'amazon' if ansible_distribution == 'Amazon' else 'redhat' }}/{{ ansible_facts.distribution_major_version }}/mongodb-org/{{ mongodb_version }}/{{ ansible_architecture }}/"
1313
yum_gpgkey: "https://www.mongodb.org/static/pgp/server-{{ mongodb_version }}.asc"
1414
yum_gpgcheck: true
1515
yum_description: "Official MongoDB {{ mongodb_version }} yum repo"

0 commit comments

Comments
 (0)