ansible all -m setup -a 'filter=ansible_distribution*'
Gather OS facts from all hosts
Runs the setup module, which collects facts (detected system properties like OS family and CPU count) from each host, filtered here to distribution-related keys. Playbooks use these facts in conditions and templates. Related: ansible all -m command.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.