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'



On Thu, Nov 2, 2023 at 3:51 PM Brian Coca <[email protected]> wrote:

> No, but it overwrites it even if the results from the current run are
> empty. Fact gathering is supposed to reflect 'current state' so if for
> example you remove a network interface, but had gathered facts about
> it before hand, when you refresh facts, it will disappear from those
> also.
>
>
> --
> ----------
> Brian Coca
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CACVha7fBm3t4V8SLc9fe7LZk%3Dm2d79-4T_A4p_VGHRof%2B8KpNw%40mail.gmail.com
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CABOsP2Mn9-L9jPZmSmVaPLEh-KF%2BReBh3rPCZTiChYkW7wXK0g%40mail.gmail.com.

Reply via email to