Hi Vlado,
You are right, it is the Powershell parameter interpretation. I have
previously tried quoting in the Ansible playbook like:
- name: my-script
script: My-Script.ps1 -svc_password '{{ vault_password }}'
and
- name: my-script
script: My-Script.ps1 -svc_password "{{ vault_password }}"
Neither of these worked. Per your suggestion I tried:
- name: my-script
script: My-Script.ps1 -svc_password {{ 'vault_password' }}
This worked, I'll admit, I'm a little surprised. I have to do some reading
on Jinja2.
Thank you!
--
Kind regards
Stephen.
On Wednesday, 23 October 2019 09:19:46 UTC+1, Vladimir Botka wrote:
>
> On Mon, 21 Oct 2019 09:34:22 -0700 (PDT)
> Stephen Feyrer <[email protected] <javascript:>> wrote:
>
> > vault_password: abc(123
> > ---
> > tasks:
> > - name: my-script
> > script: My-Script.ps1 -secret {{ vault_password }}
> >
> > The error which is reported is quite long though the operative part
> looks
> > like:
> > (Missing closing ')' in expression.:String) []
>
> The error "Missing closing ')'..." is very probably reported by the
> script.
> Find out how to pass the argument to the script from the command-line
> before
> you proceed with Ansible.
>
> Cheers,
>
> -vlado
>
--
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/08a8ce4a-1385-4ece-8b4f-66cefbda4380%40googlegroups.com.