ansible-collections / ansible-consul

:satellite: Ansible role for Hashicorp Consul clusters
https://galaxy.ansible.com/ansible-community/consul/
BSD 2-Clause "Simplified" License
456 stars 316 forks source link

Fix role being unable to find package dnsmasq on RHEL8 #505

Closed CDFN closed 2 years ago

CDFN commented 2 years ago

This fixes error occurring on Rocky Linux 8. Role was unable to find dnsmasq package. OS that it wasn't working on:

NAME="Rocky Linux"
VERSION="8.6 (Green Obsidian)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.6"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Rocky Linux 8.6 (Green Obsidian)"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:rocky:rocky:8:GA"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
ROCKY_SUPPORT_PRODUCT="Rocky Linux"
ROCKY_SUPPORT_PRODUCT_VERSION="8"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8"

Error details:

- name: Install Dnsmasq package
  ^ here

fatal: [gameserver-fsn-2]: FAILED! => {}

MSG:

The task includes an option with an undefined variable. The error was: 'dnsmasq_package' is undefined