[ansible-project] Download Github file from Ansible

2020-06-19 Thread shyam rpm
Hi,


Is it possible to download a Github file without Git module to a remote 
machine (windows) using win_get_url or win_uri module ?



Thankyou,
Shyam

-- 
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/4e1f22be-6fa0-4945-aace-f8f98cbae250o%40googlegroups.com.


[ansible-project] CSV to JSON

2020-05-20 Thread shyam rpm
Hi,

Is it possible to convert CSV file to JSON format using Ansible modules, I 
have searched for the modules have't found. Or else do we need to use any 
scripting language to achieve this powershell or python ?





Thank you,
Shyam.

-- 
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/20debdcb-92be-4156-a907-2f5fb6846117%40googlegroups.com.


Re: [ansible-project] Re: copy j2 file to Json on windows server

2020-04-28 Thread shyam rpm
Hi Jordan,

I have tried the suggested code but still have the same issue and it is not
creating the file or updating the file content.

- win_template:
   src: config.j2
dest: D:\config1.json


Thanks and Regards,
Shyam

On Tue, Apr 28, 2020 at 2:52 PM Jordan Borean  wrote:

> Remove remote_src: true as it's expecting you to supply src for the copy.
> Better yet use win_template instead like
>
> - win_template:
>src: config.j2
> dest: D:\config1.json
>
>
> --
> 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/8c3816e3-703c-490a-a591-ed7256bf0c59%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/CAFXETnrs6%2B8%2B%2BiRLiL3%3DCZNfh7smjFM%3DGmca%3D5PgaP81pfhSNw%40mail.gmail.com.


[ansible-project] copy j2 file to Json on windows server

2020-04-27 Thread shyam rpm
Hi,


Im trying to create a json file using jinja2 template using the following 
play. The file is not creating and not giving any error. can any one help.

*- name: creating a config file*
*  win_copy: *
*content:  "{{ lookup('template','config.j2') | to_nice_json }}"*
*dest: "D:\\config1.json"*
*remote_src: true*


*Thank you,*
*Shyam*

-- 
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/ce3f1a61-47b9-442d-8967-a3af0af6bdec%40googlegroups.com.


[ansible-project] unable to copy large no.of files using win_copy module

2019-07-03 Thread shyam rpm
Hi,

I tried to copy files between network shares on windows machines and the 
size of the folder is 19GB. After copying 5GB of data getting the following 
error.


*"Exception calling \"Invoke\" with \r\n\"0\" argument(s): \"The running 
command stopped because the preference variable 
\r\n"ErrorActionPreference\" common parameter set to stop: Cannot find 
path"*

is there any limitations for win_copy module ?. We can't use win_get_url in 
our server environment. 

The play book is, 

- win_copy:
 src: "192.168.1.1\\instance\\data"
 dest: "192.168.1.2\\backup\\"
 force: true
 remote_src: true
 become_method: runas
 become_user: "admin@adroot"
 become: true

Thanks and regards,
Shyam.

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/e78b7a8f-07c9-4639-83f2-5f2a5de53990%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Unexpected RC while uninstallaing a package using win_package

2019-06-29 Thread shyam rpm
Hi All,

Im trying to uninstall a package using win_package but getting the 
following error, Playbook is able to remove the software from the server 
but at the end Im getting this error.

*"msg": "unexpected rc from install G:\\Program 
Files\\IBM\\cognos\\tm1_64\\uninstall\\uninst.exe: see rc, stdout, and 
stderr for more details",*

"rc": 2,

this is the playbook,

*- win_package: *
*arguments: "/S"*
*path: "G:\\Program Files\\IBM\\cognos\\tm1_64\\uninstall\\uninst.exe"*
*product_id: auto*




Thanks and Regards,




-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/6763c288-b13a-4dde-b7d4-d00692f2f8e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.