[ansible-devel] Re: winrm send_input failed. help needed.

2019-07-04 Thread Tony Chia
Btw you can use ARA to display the output of each registered variables without 
using the debug module 

Another side benefits is that it keeps your execution logs so you can refers to 
it later 

https://ara.readthedocs.io/en/latest/

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-devel/d13f8b1f-7ecc-4fd7-922b-975aafa85347%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-devel] Re: winrm send_input failed. help needed.

2019-07-04 Thread Chris Jackson
Thanks Tony,

Yes, you were right - I needed {{ this_artifact.value.name }}

Chris.

On Wednesday, July 3, 2019 at 7:24:11 PM UTC+1, Tony Chia wrote:
>
>  Can you use the debug module and print out the variable 
> this_artifact.name ? 
>
> It appears you have registered this_artifact in previous tasks but I 
> suspect it doesn't have name attribute after this_artifact.  You might have 
> to use this_artifact.stdout.name or something like that.
>
> Tony 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-devel/439b2f2b-1c3e-417c-91b6-8d1455d86420%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-devel] Re: winrm send_input failed. help needed.

2019-07-03 Thread Chris Jackson
Thanks Jordan,

The playbook has now moved on and now i am getting the following error:-

'ansible.utils.unsafe_proxy.AnsibleUnsafeText object' has no attribute 
'name'

this is being generated from an include_tasks on the following YAML:

 name: Get the package from the artifactory
  win_uri:
url: "{{ artifactory_path }}/{{ this_artifact.name }}/{{ 
this_artifact.version }}/{{ this_artifact.package }}"
method: GET
headers:
  X-JFrog-Art-Api: "{{ artifactory_api_key }}"
dest: "{{ package_install_home }}"

- name: Install the .msi package
  win_package:
path: "{{ package_install_home }}\\{{ this_artifact.package }}"
arguments: "/i /qb TARGETDIR=d:\\perl  INSTALLDIR=d:\\strawberry\\perl"
state: present

Any ideas?

Chris

On Wednesday, July 3, 2019 at 12:02:41 PM UTC+1, Jordan Borean wrote:
>
> You can’t use Python modules on a Windows host, use win_file and not file. 
>
> Thanks 
>
> Jordan

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-devel/f0441bb5-b39a-4e32-b750-56413d2dbb06%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.