Skip to content

ipaclient_configure_dns_resolver is both a variable and a module #1294

@keestux

Description

@keestux

Is this at all possible in ansible, that a variable can have the same name as a module? Even if it is allowed, it is confusing.

In my case I get the following error

TASK [freeipa.ansible_freeipa.ipaclient : Install IPA client] **********************************************************
ERROR! couldn't resolve module/action 'ipaclient_configure_dns_resolver'. This often indicates a misspelling, missing collection, or incorrect module path.

The error appears to be in '/home/keesb/src/infra-nextcloud/infra/collections/ansible_collections/freeipa/ansible_freeipa/roles/ipaclient/tasks/install.yml': line 46, column 5, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


  - name: Install - Configure DNS resolver
    ^ here

I have installed ansible-freeipa (v1.13.2) as a collection in my project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions