--- - name: local facts directory file: path: /etc/ansible/facts.d state: directory - name: local facts copy: content: "{{ _netdata_local_facts | to_json }}" dest: /etc/ansible/facts.d/netdata.fact - name: reread local facts setup: filter: ansible_local