Special Variables — Ansible Documentation
docs.ansible.com › ansible › latestansible_facts Contains any facts gathered or cached for the inventory_hostname Facts are normally gathered by the setup module automatically in a play, but any module can return facts. ansible_local Contains any ‘local facts’ gathered or cached for the inventory_hostname . The keys available depend on the custom facts created.