--- - hosts: localhost pre_tasks: - name: Create a FACT set_fact: test_fact: test_fact tags: always tasks: - name: Print a msg debug: msg: This far post_tasks: - name: Get a FACT setup: filter: test_fact