okay, that's understood. but i'm not sure my behavior is reflecting what you're saying. either because ansible is doing something unexpected, or more likely i'm doing something wrong. what i see is
using this playbook
- name: dump vars
hosts: all
connection: local
gather_facts: true
tasks:
- name: disp var
debug:
var: ansible_local.fstab
- name: regather
ansible.builtin.setup:
- name: redisp var
debug:
var: ansible_local.fstab
ansible start
gather facts
the debug will output the variable (which is just a dict of /etc/fstab)
regather the facts through setup
the second debug then outputs
ansible_local.fstab: 'VARIABLE IS NOT DEFINED'