Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipaclient_configure_dns_resolver is both a variable and a module #1294

Open
keestux opened this issue Sep 24, 2024 · 2 comments
Open

ipaclient_configure_dns_resolver is both a variable and a module #1294

keestux opened this issue Sep 24, 2024 · 2 comments

Comments

@keestux
Copy link
Contributor

keestux commented Sep 24, 2024

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
Copy link
Contributor Author

keestux commented Sep 24, 2024

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
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants