You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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?
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
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...
The text was updated successfully, but these errors were encountered: