On 2/24/20 2:06 PM, Sivaraman P wrote:
> I have list of items to be executed in the command and I have to save the 
> result in stdout for each item to the same item.
> 
> Ex:
>  hosts: dev
>  tasks:
>    - name: get variable
>      shell: cat file #this file contain the list of items that I need to run 
> the command
>      register: out1
> 
>    - name: export
>      shell: command {{item}}
>      register: out2 #This contains results of each item from out1.
>      with_items: "{{out1.stdout_lines}}"
> 
> The question is I have to get the stdout of each item result and I have to 
> store as value for that item. 
> 

My question would be what the actual tasks are and why there are stored in a 
file on the target.
It would also help to see the format of this file.

Regards
         Racke

-- 
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.

-- 
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/9a55e3a9-0ec5-56c4-da52-ca8ab74c623e%40linuxia.de.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to