Hi there,
I have a password vault and a script to which I am passing a password.
The vault looks kind of like this:
---
vault_password: abc(123
The script in the playbook is called like this:
---
tasks:
- name: my-script
script: My-Script.ps1 -secret {{ vault_password }}
The error which i
On Mon, 21 Oct 2019 09:34:22 -0700 (PDT)
Stephen Feyrer wrote:
> vault_password: abc(123
> tasks:
> - name: my-script
>script: My-Script.ps1 -secret {{ vault_password }}
>
> (Missing closing ')' in expression.:String) []
Use "quote" filter
https://docs.ansible.com/ansible/devel/user_guide/
Hi Vlado,
Apologies for the delayed reply. Unfortunately, that hasn't worked. In
the documentation that you linked to, that syntax is described in
connection with the shell operator rather than the script.
I tried this:
- name: my-script
script: My-Script.ps1 -secret {{ vault_passwor
Hi Stephen,
> > > vault_password: abc(123
> > > tasks:
> > > - name: my-script
> > >script: My-Script.ps1 -secret {{ vault_password }}
> > >
> > > (Missing closing ')' in expression.:String) []
> >
> > Use "quote" filter
> > https://docs.ansible.com/ansible/devel/user_guide/playbooks
On Mon, 21 Oct 2019 09:34:22 -0700 (PDT)
Stephen Feyrer 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 ex
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 "{{ v
Hi Stephen,
On Wed, 23 Oct 2019 01:51:26 -0700 (PDT)
Stephen Feyrer wrote:
> - name: my-script
> script: My-Script.ps1 -svc_password '{{ vault_password }}'
>
> and
> - name: my-script
> script: My-Script.ps1 -svc_password "{{ vault_password }}"
Quoting from *Gotchas*: "If y
Hi Vlado,
That does make more sense. Thank you.
On Wednesday, 23 October 2019 10:32:17 UTC+1, Vladimir Botka wrote:
>
> Hi Stephen,
>
> On Wed, 23 Oct 2019 01:51:26 -0700 (PDT)
> Stephen Feyrer > wrote:
>
> > - name: my-script
> > script: My-Script.ps1 -svc_password '{{ vault_passw