Hi All,

I have to create the variable in group vars as below

disk:
    - { device: /dev/sdb  pvname: /dev/sdb1 }
    - { device: /dev/sdc  pvname: /dev/sdc1 }

i am getting disks name from job template survey i textarea , while 
templating it with below i am getting the error as list cant mapped to disk

block_dev  is the variable name from survey and passing the disk like  
/dev/sdb /dev/sbc  (with single space)


disktemp: "{{ block_dev.split(' ')}}

disk: "{% for item in  disktemp} - device: {{ item }} pvname:  {{ item }}1 
{% endfor %}


could you please help me to ender this format?

-- 
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/fc8fafa1-2b47-4047-8601-a025ed0d7118%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to