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

2022-08-24 Thread Vladimir Botka
On Wed, 24 Aug 2022 11:11:56 +
"'Rowe, Walter P. (Fed)' via Ansible Project"
 wrote:

> ... This only works in Ansible Tower. It won't work from the command line.  

Walter,

what exactly is the functionality provided by Tower only?

Thank you,

Best regards

-- 
Vladimir Botka

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/20220824163109.41d12c68%40gmail.com.


pgpyyypDImWOZ.pgp
Description: OpenPGP digital signature


[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 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_fact
> set_fact:
>local_ip: "{{ sites[site]['peer_ip'] | ipaddr('address') }}"
> when: "site in sites.keys()"
>
> *master-playbook.yaml: *
>
> ---
>   - import_playbook: *playbook1.yaml:*
>   - hosts: '{{ localhost | default("PALO_HOST") }}'
> connection: local
> become: yes
> gather_facts: true
>
> .
>
> thanks..!!
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/2ebd3959-c061-4e01-9315-151a1fb04798n%40googlegroups.com.