Hi all,  I understand that once an ansible variable is set, it cannot be 
unset.  I did find the medium.com article below that explains a work 
around.  Unfortunately, I do not understand some of the syntax.  
Specifically:
"-bock: &debug"
"-bock: *debug"  
foo: !!null

Thanks for any help.  Article I'm referring to is below.
######################################################

https://medium.com/opsops/how-to-undefine-fact-in-ansible-5fff46432360 
 
---
- hosts: localhost
gather_facts: no
connection: local
tasks:
- block: &debug
- debug: var=foo
when: foo|default(None) != None
- block: *debug
vars:
foo: 2
- block: *debug
vars:
foo: !!null  

-- 
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/ad39ca08-3d14-484f-8f1d-56d0dc1ea214n%40googlegroups.com.

Reply via email to