getfact.yml 283 B

1234567891011
  1. ---
  2. - name: show local facts
  3. hosts: servera.lab.example.com
  4. tasks:
  5. - name: show the old way
  6. debug:
  7. var: ansible_local['customfact']['system_purpose']
  8. - name: show the new way
  9. debug:
  10. var: ansible_facts['local']['customfact']['system_purpose']