Hi,

I want to save 1st variable value coming from loop into 1st column  and 2nd 
variable value coming from loop into 2nd column and so on.

- local_action: lineinfile line="{{ 
result.results[item|int].container.Config.Hostname }}" dest=/tmp/abhay.csv 
  with_sequence: start=0 end="{{ count|int }}" 

- local_action: lineinfile line="{{ 
result.results[item|int].container.State.Status }}" dest=/tmp/abhay.csv 
  with_sequence: start=0 end="{{ count|int }}"

Result should be like below

var1.value1     var2.value1
var1.value2      var2.value2
var1.value3      var2.value3


 How to achieve 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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/c64c7e1e-fd4e-4ee3-9884-4c39d96acb26%40googlegroups.com.

Reply via email to