Re: [ansible-project] Updating Ansible hosts inventory dynamically

2019-02-01 Thread Kai Stian Olstad
On 01.02.2019 21:13, Subhi Andrews wrote: 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? That is correct, if a inventory file doesn't

Re: [ansible-project] Updating Ansible hosts inventory dynamically

2019-02-01 Thread Subhi Andrews
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 < ansible-project+l...@olstad.com>

Re: [ansible-project] Updating Ansible hosts inventory dynamically

2019-02-01 Thread Kai Stian Olstad
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 -

[ansible-project] Updating Ansible hosts inventory dynamically

2019-02-01 Thread Subhi Andrews
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