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...