Hi again,

New challenge! 

How do I pass an array or json to a powershell script?


- name: Test
  script: "{{ role_path }}/files/test.ps1 {{ object }}"

Example json:
{
    "env01": {
        "path": "C:\Program Files (x86)\Test"
    }
}

Powershell param:
param(
    [Parameter(Mandatory = $true)]
    $object
)

I tried all kinds of things, but no luck so far. 

What kind of yaml/jinja2 format does the array need to be for powershell to 
understand is an array object of sorts?

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/eabd2a54-f309-4ae9-bc24-70d913d027e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to