On 18 Apr 2016 18:30, "Brian Coca" <bc...@ansible.com> wrote:
>
> in 2.1 you'll have:
>
> `meta: clear_facts`
From the changelog sounds like it would clear out all facts, including any custom ones, when we would just want those gathered by the setup module to be wiped or refreshed.
> ----------
> Brian Coca
>
--
Darragh Bailey
"Nothing is foolproof to a sufficiently talented fool" - unknown
Sure, if using the memory based fact cache:
refresh == smart
However when using redis, jsonfile, etc:
refresh will regather for the first play even if the cache is not expired, without discarding other custom facts added outside of the setup module.
The flush cache will wipe out those additional custom facts that were saved previously and are not generated by the setup module.
Right now we have to make sure setup is explicitly called as the first task in each list of plays (have 30+ plays run as one playbook).
--
Darragh Bailey
"Nothing is foolproof to a sufficiently talented fool" - unknown