2.4 inventory example?

42 views
Skip to first unread message

Brantley West

unread,
Nov 1, 2017, 11:39:05 AM11/1/17
to Ansible Project
Hello,

It seems the developing_api.rst page (https://github.com/ansible/ansible/blob/v2.4.1.0-1/docs/docsite/rst/dev_guide/developing_api.rst) is outdated due to the 2.4 inventory changes.  Are there any tips for doing simple inventory manipulation via Python with Ansible 2.4?  Thanks!

-bw

Andrew Latham

unread,
Nov 1, 2017, 12:12:02 PM11/1/17
to ansible...@googlegroups.com
Looks like some doc-strings around https://github.com/ansible/ansible/blob/stable-2.4/lib/ansible/inventory/manager.py#L119 would be helpful. The code is there so you can read about what is needed. #yeahopensource


--
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+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/c3d50884-1b63-40ef-b4ed-a65f2c8fa191%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
- Andrew "lathama" Latham -

Brantley West

unread,
Nov 6, 2017, 1:37:01 PM11/6/17
to Ansible Project
The Ansible inventory documentation was not helpful.  Ultimately I got it working, albeit with a nuisance warning using https://gist.github.com/cbwest3/cb4e9ac16261595a82f8b4ab54629bac.

-bw

On Wednesday, November 1, 2017 at 12:12:02 PM UTC-4, Andrew Latham wrote:
Looks like some doc-strings around https://github.com/ansible/ansible/blob/stable-2.4/lib/ansible/inventory/manager.py#L119 would be helpful. The code is there so you can read about what is needed. #yeahopensource
On Wed, Nov 1, 2017 at 10:39 AM, Brantley West <cbw...@gmail.com> wrote:
Hello,

It seems the developing_api.rst page (https://github.com/ansible/ansible/blob/v2.4.1.0-1/docs/docsite/rst/dev_guide/developing_api.rst) is outdated due to the 2.4 inventory changes.  Are there any tips for doing simple inventory manipulation via Python with Ansible 2.4?  Thanks!

-bw

--
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages