foreman-ansible-modules
foreman-ansible-modules copied to clipboard
theforeman.foreman.realm theforeman.foreman.domain modules error
Those two modules does not follow the organisation, location convention as the other modules, thus they do give error, could they be changed or an alias be added ?
the attributes of those modules are: organisations and locations so when you have the organisation and location set as as module_defaults you are getting an error for not existing option organization
module_defaults: group/theforeman.foreman.foreman: username: "{{ management_user }}" password: "{{ management_password}}" server_url: "{{ katello_server_url }}" organization: "{{ organisation_var }}"
Those modules (well, the underlying entities) can belong to multiple locations and organizations and thus only accept the plural form of the parameters.
I am not sure we could add a mapping without make that detail confusing to users, but I'll give it a try
hmm I haven't thought of that, its just annoying to provide all those module attributes on every single tasks and add extra fluff to my roles, they just look bigger and its pointless of having all the repetitive attributes on every single module call, Is there a way to set them on role level and not on play level? this way maybe I can separate the ones that require organization from the one that require the plural and call it a day?