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

Rundeck v5.7.0-20241021 does not process group_names correctly #396

Open
magnum31415 opened this issue Oct 22, 2024 · 3 comments
Open

Rundeck v5.7.0-20241021 does not process group_names correctly #396

magnum31415 opened this issue Oct 22, 2024 · 3 comments

Comments

@magnum31415
Copy link

1.- Executing from comand line a playbook that prints group_names for a host, in example de-web-95 it shows belogs to two groups: web & redhat (correct!!)

2.- Executing from rundeck the SAME playbook that prints group_names for de-web-95 it shows belogs to ONLY ONE groups: redhat

Playbook

- name: Host belongs to this ansible groups in the inventory
  debug:
    var: group_names

Inventory

all:
children:
web:
hosts:
de-web-95: {}
redhat:
hosts:
de-web-95 : {}

Can anybody exaplin how to solve this issue. If it is possible with an example...

@magnum31415
Copy link
Author

There is any prevision to solve it?

@MegaDrive68k
Copy link

Hi, can you test setting gather facts = true in the Ansible model source? It works here in my environment.

thanks.

@jimr6007
Copy link

Hi @MegaDrive68k

I reported this here as well: https://groups.google.com/g/rundeck-discuss/c/gLWqF2uU5zo

It will work with gather_facts=True because that triggers the full playbook run (gather-hosts)

the awesome thing would be if groups are processed correctly when gather_facts=False and therefore, we can continue to take advantage of the HUGE cpu load/time savings we get by only running the ansible-inventory command to generate nodes instead of a full ansible-playbook run.

it looks like a List data structure is being used (does not allow duplicate items) and that is the cause of the problem.

any idea when a version of the plugin with the needed code changes might be ready?

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

3 participants