Skip to content

Commit

Permalink
Merge pull request #64 from kurik/RediSearch
Browse files Browse the repository at this point in the history
fix: Do not load RediSearch on non x86_64 Fedoras
  • Loading branch information
kurik authored Jun 20, 2024
2 parents c07d627 + e04f559 commit c835b19
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
4 changes: 4 additions & 0 deletions roles/redis/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@
loop:
- "{{ role_path }}/vars/default.yml"
- "{{ role_path }}/vars/{{ ansible_facts['os_family'] }}.yml"
- "{{ role_path }}/vars/{{ ansible_facts['os_family'] }}_{{ ansible_facts['ansible_architecture'] }}.yml"
- "{{ role_path }}/vars/{{ ansible_facts['distribution'] }}.yml"
- "{{ role_path }}/vars/{{ ansible_facts['distribution'] }}_{{ ansible_facts['ansible_architecture'] }}.yml"
- "{{ role_path }}/vars/{{ ansible_facts['distribution'] }}_{{ ansible_facts['distribution_major_version'] }}.yml"
- "{{ role_path }}/vars/{{ ansible_facts['distribution'] }}_{{ ansible_facts['distribution_major_version'] }}_{{ ansible_facts['ansible_architecture'] }}.yml"
- "{{ role_path }}/vars/{{ ansible_facts['distribution'] }}_{{ ansible_facts['distribution_version'] }}.yml"
- "{{ role_path }}/vars/{{ ansible_facts['distribution'] }}_{{ ansible_facts['distribution_version'] }}_{{ ansible_facts['ansible_architecture'] }}.yml"
when: item is file
# yamllint enable rule:line-length

Expand Down
7 changes: 2 additions & 5 deletions roles/redis/vars/Fedora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,5 @@
---
# Put internal variables here with Fedora specific values.

__redis_packages_extra:
- RediSearch

__redis_loaded_modules:
- /usr/lib64/redis/modules/redisearch.so
__redis_packages_extra: []
__redis_loaded_modules: []
9 changes: 9 additions & 0 deletions roles/redis/vars/Fedora_x86_64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# SPDX-License-Identifier: MIT
---
# Put internal variables here with Fedora on x86_64 specific values.

__redis_packages_extra:
- RediSearch

__redis_loaded_modules:
- /usr/lib64/redis/modules/redisearch.so

0 comments on commit c835b19

Please sign in to comment.