Hi 

Im a newbie on Ansible. I have a scenario where 

Steps:
I look for a version of an application.
If version is present call uninstall.yml else call install.yml

snippet i tried

 - win_shell: D:\Build\regread2.vbs XXX InstallLocation
    register: result
  - set_fact:
      signup_token: '{{ result.stdout | regex_search(qry)| 
replace("[","")|replace("]","") }}'
    vars:
      qry: '\[(.*?)\]'
  - debug: msg={{ signup_token }}
###########################################################################################################
  - include_tasks: Uninstall.yml
    when: '{{ signup_token }}'== ''

Please do help.

Regards
VY

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/6e8d5c27-e66c-421b-8ee2-7de283a38a90%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to