Hi, is there a possibility to have the below plugin avialable in Ansible Galaxy FreeIPA collection? https://github.com/ansible/ansible/blob/stable-2.9/contrib/inventory/freeipa...
Trying to use dynamic inventory by using the plugin. but this is not being included/downloaded with the collection.
I create a dynamic inventory (sourced from project, a git where I have the following folder and file): inventories/clients_and_controllers.yml, where the contents of the .yml is a single line:
``` plugin: freeipa ```
The collections used are:
``` collections: - name: freeipa.ansible_freeipa - name: community.general ```
The error message trying to sync the resource for the dynamic inventory is:
[WARNING]: * Failed to parse
/runner/project/inventories/clients_and_controllers.yml with auto plugin: inventory config ‘/runner/project/inventories/clients_and_controllers.yml ’ specifies unknown plugin ‘freeipa.py’
Kind regards!
On Tue, Jan 23, 2024 at 1:33 PM slek kus via FreeIPA-users < freeipa-users@lists.fedorahosted.org> wrote:
Hi, is there a possibility to have the below plugin avialable in Ansible
Galaxy FreeIPA collection?
https://github.com/ansible/ansible/blob/stable-2.9/contrib/inventory/freeipa...
Trying to use dynamic inventory by using the plugin. but this is not
being included/downloaded with the collection.
This plugin is not related to the ansible-freeipa collection and is not maintained by the FreeIPA team.
We plan to add dynamic inventory support for ansible-freeipa, but we have no ETA at this time.
I create a dynamic inventory (sourced from project, a git where I have
the following folder and file):
inventories/clients_and_controllers.yml, where the contents of the .yml
is a single line:
plugin: freeipa
The collections used are:
collections: - name: freeipa.ansible_freeipa - name: community.general
The error message trying to sync the resource for the dynamic inventory
is:
[WARNING]: * Failed to parse
/runner/project/inventories/clients_and_controllers.yml with auto plugin: inventory config ‘/runner/project/inventories/clients_and_controllers.yml ’ specifies unknown plugin ‘freeipa.py’
Ansible 2.9 is EOL for a while. ansible-freeipa requires Ansible 2.13+.
Does this plugin support newer versions? Which Ansible version are you using?
Rafael
Kind regards!
FreeIPA-users mailing list -- freeipa-users@lists.fedorahosted.org To unsubscribe send an email to freeipa-users-leave@lists.fedorahosted.org Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives:
https://lists.fedorahosted.org/archives/list/freeipa-users@lists.fedorahoste...
Do not reply to spam, report it:
https://pagure.io/fedora-infrastructure/new_issue
-- Rafael Guterres Jeffman Senior Software Engineer FreeIPA - Red Hat
Hi Rafael, I use ansible automation platform (redhat downstream of awx). The Ansible version is 2.15.6. The error is expected as (as you mention) no plugin is provided with the ansible-freeipa collection. A dynamic inventory plugin would be so helpful with the Ansible collection. Currently, I need to clear users from sss cache on all clients and ipa servers, each time an idoverride is changed. It would be helpful to just compose an Ansible inventory dynamically to run the tasks against it.
Hopefully, a solution is provided soon enough, in the meantime, I have to maintain the hosts list manually.
Kind regards.
On 1/24/24 11:29, slek kus via FreeIPA-users wrote:
Hi Rafael, I use ansible automation platform (redhat downstream of awx). The Ansible version is 2.15.6. The error is expected as (as you mention) no plugin is provided with the ansible-freeipa collection. A dynamic inventory plugin would be so helpful with the Ansible collection. Currently, I need to clear users from sss cache on all clients and ipa servers, each time an idoverride is changed. It would be helpful to just compose an Ansible inventory dynamically to run the tasks against it.
Hopefully, a solution is provided soon enough, in the meantime, I have to maintain the hosts list manually.
There is now a PR for an inventory plugin for ansible-freeipa: https://github.com/freeipa/ansible-freeipa/pull/1231
It will be part of the next ansible-freeipa release.
Kind regards.
FreeIPA-users mailing list -- freeipa-users@lists.fedorahosted.org To unsubscribe send an email to freeipa-users-leave@lists.fedorahosted.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedorahosted.org/archives/list/freeipa-users@lists.fedorahoste... Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
Hi, just tried the plugin. Is it correct that this only returns IPA servers? Any way to get clients from a certain hostgroup?
regards..
freeipa-users@lists.fedorahosted.org