Closed jwalzer closed 1 year ago
we've added this in a PR it should be published soon, but this should solve your issue!
Coming after the battle, but I think that the solution could have been to add the variables to the inventory, I don't think (but I might be wrong) that they need to be injected as extra vars. This said, it can become useful for other purposes.
Summary
The
aap_setup_install
role hardcodes the commandline to call the setup.sh of the installer in a way, that onlykey=value
variables are possible. Adding complex variables via the-e @conf.yaml
parameter is not supported because of the hardcoded template.Issue Type
The
aap_setup_install
role hardcodes the commandline to call the setup.sh of the installer in a way, that onlykey=value
variables are possible. Adding complex variables via the-e @conf.yaml
parameter is not supported because of the hardcoded template: https://github.com/redhat-cop/aap_utilities/blob/0391f53837fa80746c9b645270b78556526313b5/roles/aap_setup_install/templates/setup_sh.j2#L5This is in conflict with some of the RedHat guides like LDAP integration (i.e. https://access.redhat.com/solutions/6977153) where it specifically documents in the resolution:
Ansible, Collection, Docker/Podman details
This is independent of the ansible or ansible-galaxy version, as it is a problem with the code in the install-role clearly linked above
This Bug is independent from the ansible installation method
OS / ENVIRONMENT
This Bug is independent from the OS/Environment
Desired Behavior
I want to provide an additionals vars file to the installer via the
-e @file.yaml
directive in theaap_setup_install
roleActual Behavior
I cannot provide the additional
@file.yaml
parameter, because the syntax doesn't make this possibleSTEPS TO REPRODUCE
Try to call the aap_setup_install role with an
-e @file
directive