Hi,

Below snippet sometimes working and sometimes failing. So, i am executing 
it with jenkins and idea is that if parameter is defined then script should 
run otherwise it should not run. 

Can anyone please enlighten me what's wrong ?

#############
  - name: Executing lvm script 
    shell: /tmp/lvm-script.sh sdb {{ vg_name }} {{ mtpt_size }} 
    args:
      chdir: /tmp/
    when: vg_name is defined
##########

-- 
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/252e2cfd-3f8e-436b-a31b-918ea4c6728a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to