Re: [ansible-project] Read the values from file and store in variable.

2020-05-26 Thread Sivakumar Saravanamuthu
Hi

Why can't you grep the required output using shell and store in >> remote
server.
Thank you.
Regards,
Siva


On Tue, 26 May 2020 at 16:14, Akshay Bora  wrote:

> Hi All,
>
> I have a file named as /etc/oraInst.loc. The file contents are as below.
>
> inventory_loc=/u01/app/oraInventory
> inst_group=oinstall
>
> *I need to store the value of inventory_loc , that is
> ,/u01/app/oraInventory in any variable.*
>
> These files are at remote host and not on ansible controller host. I used
> the INI module to read the file stored locally and I could do it but I am
> not able to read files stored on the remote host and it throws the error
> saying file is not present. Can you please help me to accomplish this task.
>
> --
> 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/e7104dcc-1054-4ec4-b898-11cbcf80ddb4%40googlegroups.com
> 
> .
>

-- 
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/CANnu9FH8mruGCSK0K1QV_Y-KYz1%3DuiUbvTarzbygqD5RyCD4%2Bw%40mail.gmail.com.


[ansible-project] Read the values from file and store in variable.

2020-05-26 Thread Akshay Bora
Hi All,

I have a file named as /etc/oraInst.loc. The file contents are as below.

inventory_loc=/u01/app/oraInventory
inst_group=oinstall

*I need to store the value of inventory_loc , that is 
,/u01/app/oraInventory in any variable.*

These files are at remote host and not on ansible controller host. I used 
the INI module to read the file stored locally and I could do it but I am 
not able to read files stored on the remote host and it throws the error 
saying file is not present. Can you please help me to accomplish this task.

-- 
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/e7104dcc-1054-4ec4-b898-11cbcf80ddb4%40googlegroups.com.