Ansible Role
sap_hana_preconfigure
OS Family
RHEL
Feature/Enhancement request
We want to be able to define role vars which are valid for a certain RHEL minor release and all later ones, without having to define one vars file per each RHEL minor release. This has been implemented as part of #1083 but is causing the problem initially reported in #1093, see also #1094.
If possible, avoid loading role vars files via a find task running on localhost, see #1094 (comment).
The order of variable loading should be as follows (example for SLES 15.6 or SLES_SAP 15.6 and RHEL 9.4):
Suse.yml / RedHat.yml
SLES_15.yml / RedHat_9.yml
- (SLES_SAP only)
SLES_SAP_15.yml
- (RHEL only)
RedHat_9.1.plus.yml
- (RHEL only)
RedHat_9.2.plus.yml
- (RHEL only)
RedHat_9.3.plus.yml
- (RHEL only)
RedHat_9.4.plus.yml
SLES_15.6.yml / RedHat_9.4.yml
- (SLES_SAP only)
SLES_SAP_15.6.yml
Variables defined in later vars files will overwrite those defined before.
Note: Redefining a variable for a specific RHEL minor release (e.g. RedHat_9.4.yml) which is already defined in a plus file for the same RHEL minor release (e.g. RedHat_9.4.plus.yml) should be avoided because otherwise, users might have to investigate the variable loading order.
Community participation
Happy to implement this feature
Optional - Attempted solutions or manual steps
No response
Ansible Role
sap_hana_preconfigure
OS Family
RHEL
Feature/Enhancement request
We want to be able to define role vars which are valid for a certain RHEL minor release and all later ones, without having to define one vars file per each RHEL minor release. This has been implemented as part of #1083 but is causing the problem initially reported in #1093, see also #1094.
If possible, avoid loading role vars files via a
findtask running on localhost, see #1094 (comment).The order of variable loading should be as follows (example for SLES 15.6 or SLES_SAP 15.6 and RHEL 9.4):
Suse.yml/RedHat.ymlSLES_15.yml/RedHat_9.ymlSLES_SAP_15.ymlRedHat_9.1.plus.ymlRedHat_9.2.plus.ymlRedHat_9.3.plus.ymlRedHat_9.4.plus.ymlSLES_15.6.yml/RedHat_9.4.ymlSLES_SAP_15.6.ymlVariables defined in later vars files will overwrite those defined before.
Note: Redefining a variable for a specific RHEL minor release (e.g. RedHat_9.4.yml) which is already defined in a plus file for the same RHEL minor release (e.g. RedHat_9.4.plus.yml) should be avoided because otherwise, users might have to investigate the variable loading order.
Community participation
Happy to implement this feature
Optional - Attempted solutions or manual steps
No response