geerlingguy / geerlingguy/ansible-for-devops

Use inventory plugin instead of script for Python dynamic inventory example

Open
#201 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
9.9k
Forks
3.8k
PR merge metrics
No merged PRs in 30d

Description

See: [Developing dynamic inventory](https://docs.ansible.com/ansible/latest/dev_guide/developing_inventory.html).

Scripts are now actually executed using the 'script' inventory plugin. It's preferred nowadays to write an inventory plugin to use dynamic inventory rather than writing an inventory script (unless you want to maintain the script in a non-Python language).

So maybe keep the PHP-based script example, but change the Python one to an inventory plugin.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.