unregister

Hi,

I need to unregister a variable after using (the following statement is meaningless, it just gives you an example), but I could not find a module called unregister or clear, or reset the register variable, please advice.

  • name: register something
    register: temVariable
    when: temVariable is not defined

  • name: check temVariable
    shell: runsomething
    when: temVariable is defined

  • name: unregister temVariable
    unregister: temVariable
    when: temVariable is defined

Thank you.

  • j