freeipa / ansible-freeipa

Ansible roles and modules for FreeIPA
GNU General Public License v3.0
504 stars 232 forks source link

ipaclient_configure_dns_resolver is both a variable and a module #1294

Open keestux opened 2 months ago

keestux commented 2 months ago

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.

keestux commented 2 months ago

BTW, I try installing the collection directly out of Git. But that probably doesn't work because to names are not with their FQCN (Fully Qualified Collection Namspace).

t-woerner commented 1 month ago

The github repo of ansible-freeipa is not an Ansible collection. It is needed to use the script utils/build-galaxy-release.sh to generate the collection.