[ansible-project] Passing a '(' in a variable string

2019-10-21 Thread Stephen Feyrer
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

Re: [ansible-project] Passing a '(' in a variable string

2019-10-21 Thread Vladimir Botka
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/

Re: [ansible-project] Passing a '(' in a variable string

2019-10-23 Thread Stephen Feyrer
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

Re: [ansible-project] Passing a '(' in a variable string

2019-10-23 Thread Vladimir Botka
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

Re: [ansible-project] Passing a '(' in a variable string

2019-10-23 Thread Vladimir Botka
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

Re: [ansible-project] Passing a '(' in a variable string

2019-10-23 Thread Stephen Feyrer
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

Re: [ansible-project] Passing a '(' in a variable string

2019-10-23 Thread Vladimir Botka
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

Re: [ansible-project] Passing a '(' in a variable string

2019-10-24 Thread Stephen Feyrer
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