ansible how is hostvars and gathered facts and facts from setup module different

Viewed 2512

What are the differences in getting values from hostvars and facts from calling setup module different in Ansible?

If I were to keep host specific values, just use hostvars to get values? I have a long list of hosts(grouped). If I were to use hostvars to retrieve values, how can I distinguish hosts from groups?

1 Answers
Related