Skip to content

Add support for credential type disambiguation in dispatch when multiple credentials share the same name #1138

@daleroux

Description

@daleroux

Is your feature request related to a problem? Please describe.
Issue when using the infra.aap_configuration.dispatch role. The problem arises during Job Template creation: the role fails because there are two credentials with the same name in the AAP controller—one of type machine, the other of another type. Ansible expects a unique match by name, and since it finds two, it fails to resolve which credential to use.

Describe the solution you'd like
Modify filetree_create as well as dispatch (and controller_job_template) and add the credential type, allowing dispatch to zeron in on a unique credential.

Describe alternatives you've considered
Ensuring the name of credentials are unique in AAP is an alternative, but it may require a lot of manual work in environments where many credentials with the same name are present.

Additional context
This is currently impacting a customer migrating from 2.4 to 2.5 with CasC.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions