You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
infra.aap_utilities.aap_setup_prepare doesn't generate proper inventory if the group names don't match with keys in aap_setup_prep_inv_nodes variable
#258
Open
snagoor opened this issue
Oct 20, 2024
· 0 comments
· May be fixed by #259
ansible installation method: one of source, pip, OS package, EE
OS / ENVIRONMENT
Desired Behavior
When we map our ansible host groups to the default group names that is expected in aap_setup_prep_inv_nodes variable then the inventory ini file should be created with proper setup.
End-user should be given the flexibility of choosing the group names as they wish to be mapped with groups that the installer expects.
Actual Behavior
Please give some details of what is actually happening.
When we group hosts based on a different name other than default group names that is expected in aap_setup_prep_inv_nodes variable then the inventory ini file created will have empty groups
Include a minimum complete verifiable example with:
playbook / task
For example, create an inventory with the following (in reality we can dynamically group hosts while provisioning in an end-to-end automation)
[controller]
ctrl1.example.com
ctrl2.example.com
ctrl3.example.com
[db]
db.example.com
And then define the playbook variables expected in infra.aap_utilities.aap_setup_prepare role
It strictly enforces that the user provided group name should match with the group names under aap_setup_prep_inv_nodes variable.
I understand that the latest 2.5.2 release of infra.aap_utilities collection still doesn't have this code. This error is reproduceable only when above mentioned PR is included.
The text was updated successfully, but these errors were encountered:
Summary
infra.aap_utilities.aap_setup_prepare
doesn't generate proper inventory if the group names don't match with keys inaap_setup_prep_inv_nodes
variableIssue Type
Ansible, Collection, Docker/Podman details
OS / ENVIRONMENT
Desired Behavior
When we map our ansible host groups to the default group names that is expected in
aap_setup_prep_inv_nodes
variable then the inventory ini file should be created with proper setup.End-user should be given the flexibility of choosing the group names as they wish to be mapped with groups that the installer expects.
Actual Behavior
Please give some details of what is actually happening.
When we group hosts based on a different name other than default group names that is expected in
aap_setup_prep_inv_nodes
variable then the inventory ini file created will have empty groupsInclude a minimum complete verifiable example with:
And then define the playbook variables expected in
infra.aap_utilities.aap_setup_prepare
roleNo actual groups are created.
STEPS TO REPRODUCE
This is happening due to this PR 8363732.
It strictly enforces that the user provided group name should match with the group names under
aap_setup_prep_inv_nodes
variable.I understand that the latest 2.5.2 release of
infra.aap_utilities
collection still doesn't have this code. This error is reproduceable only when above mentioned PR is included.The text was updated successfully, but these errors were encountered: