Re: [ansible-project] passing "var" from one playbook to another playbook

2022-08-24 Thread maulik patel
No I’m not using ansible tower. I’m Just making umbrella type of structure that being said I need to call out one play book which has few variable that needs to be also used in master play book.. kind of importing one playbook within another playbook and all variable in that playbook needs to also

Re: [ansible-project] passing "var" from one playbook to another playbook

2022-08-23 Thread maulik patel
is conceivable that you would > set_fact AND set_stats in a single playbook. The set_fact task would > create a var you can use later within the playbook. The set_stats task > would create artifacts for use in downstream playbooks. > > Walter > -- > Walter Rowe, Division

[ansible-project] Re: passing "var" from one playbook to another playbook

2022-08-22 Thread maulik patel
here i want to use* local_ip* , into master playbook... On Tuesday, August 23, 2022 at 9:05:17 AM UTC+5:30 maulik patel wrote: > hi , > > i'm trying to call one playbook1.yaml into master-playbook.yaml and i want > to use variable that defined through set_facts into play

[ansible-project] passing "var" from one playbook to another playbook

2022-08-22 Thread maulik patel
hi , i'm trying to call one playbook1.yaml into master-playbook.yaml and i want to use variable that defined through set_facts into playbook1 into master playbook. but i dont know what is correct way to do...please help me here with better example.. *playbook1.yaml: * - name: local_ip_f

[ansible-project] AWS VPN is not taking IP address as defined in ansible VPN module

2022-07-24 Thread maulik patel
i'm looking for assistance for Tunnel IP address assignment defined by my own in aws for 'ec2_vpc_vpn' but somehow aws is taking its own address ( 169.254.87.200/30 & 169.254.164.108/30 ) rather than i have returned facts for tunnel ip.. how can i override with custom returned value ? ansible_m

Re: [ansible-project] Re: netbox_interface module: Failed to establish connection to Netbox API"

2022-07-21 Thread maulik patel
If you can scratch your head little bit then I’ll be appreciated.. I’ve wasted couple of hours for these but no luck and im out of ideas… Thank you ..!! On Thu, 21 Jul 2022 at 8:30 PM Heinz Meier wrote: > Yes. But I don't remember how > > maulik patel schrieb am Do., 21. Juli

[ansible-project] Re: netbox_interface module: Failed to establish connection to Netbox API"

2022-07-21 Thread maulik patel
did you get it resolved ? On Thursday, July 2, 2020 at 12:30:54 AM UTC+5:30 heinz6...@gmail.com wrote: > Hi, > > I am quite desparate already. I want to use the netbox_interface module in > ansible, but it fails. To check it, I use the uri module: > > - name: URI > uri:: > url: https://127

[ansible-project] find element with dictionary in Ansible and return value

2022-07-20 Thread maulik patel
hi , i'm trying to value of one yaml file1 with another file2 which has list of dict and if element if file1 matched with key/value of file2 then need to use value of file1 need to use as a key of file2 and return value of it... not sure how we can leverage "when" condition or might any other w

Re: [ansible-project] error with appending list in Ansible

2022-07-19 Thread maulik patel
g: "{{ list_tunnel }}" > ``` > > or > > > ``` > - name: create new list for tunnel > set_fact: > list_tunnel: "{{ list_tunnel | default([]) + ['tunnel.' + item | > string] }}" > loop: "{{ range(1,10) | list}}

[ansible-project] error with appending list in Ansible

2022-07-19 Thread maulik patel
I'm trying to append new tunnel interface to empty list, but i'm got below error. Can you please help me out here ? *tasks: * *- name: empty list set_fact: list_tunnel: [] - name: create new list for tunnel set_fact:

Re: [ansible-project] Re: need help for XML to JSON Parsing Error with Ansible using Parse_xml

2022-07-10 Thread maulik patel
379 10 3 On Friday, July 8, 2022 at 12:48:26 PM UTC+5:30 dnmv...@gmail.com wrote: > Perhaps, if you provide a clean piece of xml. > > > On Fri, 8 Jul 2022 at 08:37, maulik patel wrote: > >> anyone here to help me out with

[ansible-project] Re: need help for XML to JSON Parsing Error with Ansible using Parse_xml

2022-07-07 Thread maulik patel
anyone here to help me out with this please ? thanks... On Thursday, July 7, 2022 at 6:57:27 PM UTC+5:30 maulik patel wrote: > hi , > > I was trying to parse a XML response to JSON using parse_xml from an AWS > VPN output, but I'm getting the below error. > I am abl

[ansible-project] need help for XML to JSON Parsing Error with Ansible using Parse_xml

2022-07-07 Thread maulik patel
hi , I was trying to parse a XML response to JSON using parse_xml from an AWS VPN output, but I'm getting the below error. I am able to parse data with *"vpn_conn_facts.vpn_connections[0].customer_gateway_configuration"* but, it is when I apply the filter parse_xml, that the error arise. *-> E