Re: [ansible-devel] How to define hosts when you integrate Ansible into external system

2021-07-02 Thread Bob Harold
I use:

*ansible-playbook myplaybook.yml -i hosts -e host=myhost.mydomain.com
*

and in the playbook:

*hosts: "{{ host }}"*

That works well for me.  I think "all" is much too dangerous, and
hardcoding a host or group is too limiting.

-- 
Bob Harold



On Fri, Jul 2, 2021 at 11:48 AM Brian Coca  wrote:

> You also have --limit , which avoids playbook rewrites and  per run
> custom inventories
>
>
> --
> --
> Brian Coca
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-devel+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-devel/CACVha7dFb_W1inZ%2ByDXYDDEzofFYTbewnh7toWfCqzd%2BLVk4vQ%40mail.gmail.com
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-devel/CA%2Bnkc8B%3DGM9rjkzeFa4E50w_JOBo%3DPX7yptXO1cbMOFfwJQUww%40mail.gmail.com.


Re: [ansible-devel] How to define hosts when you integrate Ansible into external system

2021-07-02 Thread Brian Coca
You also have --limit , which avoids playbook rewrites and  per run
custom inventories


-- 
--
Brian Coca

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-devel/CACVha7dFb_W1inZ%2ByDXYDDEzofFYTbewnh7toWfCqzd%2BLVk4vQ%40mail.gmail.com.