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 <[email protected] <javascript:>> 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 your value starts with a quote the entire > value > must be quoted, not just part of it..." > > https://docs.ansible.com/ansible/latest/reference_appendices/YAMLSyntax.html#gotchas > > > Correct syntax is > > - name: my-script > script: 'My-Script.ps1 -svc_password {{ vault_password }}' > > and > - name: my-script > script: "My-Script.ps1 -svc_password {{ vault_password }}" > > > - name: my-script > > script: My-Script.ps1 -svc_password {{ 'vault_password' }} > > > > This worked, I'll admit, I'm a little surprised... > > I'm surprised too. In my case > > - script: my-script.sh {{ 'vault_password' }} > register: result > > the result was > > ok: [localhost] => { > "result.stdout": "vault_password\n" > } > > 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/dde2502e-bfe7-4147-b5f4-172a9286608a%40googlegroups.com.
