unregister

12 views
Skip to first unread message

hce h

unread,
Jan 7, 2015, 7:05:38 PM1/7/15
to ansible...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages