Thank you, Kai. Will check it out.

So if we can write a script that generates inventory in json format, we can
directly pass the script to the ansible-playbook command? Did I understand
that correctly?

Regards,

On Fri, Feb 1, 2019 at 11:26 AM Kai Stian Olstad <
[email protected]> wrote:

> On 01.02.2019 20:09, Subhi Andrews wrote:
> > We have our hosts inventory organized by environments. We tend to have
> > alpha versions of software deployed in our test environment. Are there
> > any
> > thoughts on keeping the inventory dynamically updated if we decide to
> > move
> > a host between environment - say from test to dev or from dev to
> > production
> > etc. Are there any best practices and such around it?
>
> You have information in the documentation about dynamic inventory
>
> https://docs.ansible.com/ansible/latest/user_guide/intro_dynamic_inventory.html
>
> Some plugins is created
> https://docs.ansible.com/ansible/latest/plugins/inventory.html
>
> If non of them suite your need you probably need to create your own.
>
> --
> Kai Stian Olstad
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Ansible Project" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/ansible-project/SwwNRlEoqyY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/2c62a4977194d117f83ef0fdfbd6e650%40olstad.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAPkR6y0Gz%3D%2BoJYmM%3DTEwSxgDY-eixnFu7%2BTyJWzcCcQ%3D_%3D-gfA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to