--- - name: Ping check to determine if hosts are reachable hosts: all become: true gather_facts: false tasks: - name: Debug test_set_stats ansible.builtin.debug: msg: "{{ test_set_stats | default('It didnt work!') }}" ...