Re: [ansible-project] json_query & regular expression

2020-04-11 Thread Vladimir Botka
On Sat, 11 Apr 2020 21:26:28 -0700 (PDT) Kiran Kumar wrote: > In jason query how can i add regular expression ? eg if have vm1, vm2,vm3 > below query can be adjusted ? eg query: "[?guest_name == 'vm*' ]" , > seems does not work in below case > > > tasks: > > - name: Gather all VMs

[ansible-project] json_query & regular expression

2020-04-11 Thread Kiran Kumar
In jason query how can i add regular expression ? eg if have vm1, vm2,vm3 below query can be adjusted ? eg query: "[?guest_name == 'vm*' ]" , seems does not work in below case https://jmespath.org/specification.html#filterexpressions i tried few things but no luck Thanks --- > -

[ansible-project] Re: using vars_prompt in a vars file being addressed by include_vars

2020-04-11 Thread Dave Zarei
HI xxmlud, yeah i couldn't find any documents saying this is possible. as a remedy, i used pause module in the main play. Thanks. On Friday, April 10, 2020 at 1:03:29 PM UTC-4, xxmlud gnu wrote: > > Hello, > > I think "vars_prompt" can only be used in the main playbook. > > BR, > > > El

Re: [ansible-project] Using OpenSSL module without files

2020-04-11 Thread 'Felix Fontein' via Ansible Project
Hi Dick, > Our ansible deployments are using OpenSSL key materials that are > stored as multiline values in yaml vars files. > I'd like to use openssl_certificate_info but that seems to require a > path parameter: >

[ansible-project] Using OpenSSL module without files

2020-04-11 Thread Dick Visser
Hi Our ansible deployments are using OpenSSL key materials that are stored as multiline values in yaml vars files. I'd like to use openssl_certificate_info but that seems to require a path parameter: https://docs.ansible.com/ansible/latest/modules/openssl_certificate_info_module.html After

Re: [ansible-project] Append data to json file using ansible modules

2020-04-11 Thread Shyam U
Hi Vinod and dick, Thank you, please look at the json file on the remote server. I'm trying to replace the nas path using win_lineinfile, but the path that I'm providing is updating at the end of the file. Hi dick, please update how to do with from_json and to_json. Json file: [ {