Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

Commit fc8831a

Browse files
author
Brad Laue
committed
Detect package manager (yum/dnf) and versionlock plugin package name
1 parent e4920b0 commit fc8831a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: vars/RedHat.yml

+2
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
java: "{{ es_java | default('java-1.8.0-openjdk.x86_64') }}"
33
default_file: "/etc/sysconfig/elasticsearch"
44
es_home: "/usr/share/elasticsearch"
5+
package_manager: "{% if ansible_os_family == 'RedHat' and ansible_distribution_major_version >= '8' %}dnf{% else %}yum{% endif %}"
6+
versionlock_plugin_package: "{% if ansible_os_family == 'RedHat' and ansible_distribution_major_version >= '8' %}python3-dnf-plugin-versionlock{% else %}yum-plugin-versionlock{% endif %}"

0 commit comments

Comments
 (0)