Hi,
I am reading 3 different variable from a text file and want to iterate in 3 
different with_items.

variablefile.yml

vars1 :
 - first_value1
 - first_value 2

var2:
 - second_value1
 - second_value2

var3:
 - third_value1
 - third_value2 

I want to read the value from the text file and pass that as a variable in 
loop. 

        var_value1: "{{ item }}"
      with_items: "{{ var_value1}}"

        var_value2: "{{ item }}"
      with_items: "{{ var_value2}}"

        var_value3: "{{ item }}"
      with_items: "{{ var_value3}}"

Not sure how do I do this ?


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/c0007dd2-0cbb-4de1-8e81-ed8bf3572df4%40googlegroups.com.

Reply via email to