No description
  • Python 99.9%
  • DIGITAL Command Language 0.1%
Find a file
Alan Rominger a058e64432 Merge pull request #14 from AlanCoding/frontport
use disutils find_executable instead of which
2017-09-20 14:23:00 -04:00
tests add flake8 to Travis testing 2017-07-24 14:46:10 -04:00
.gitignore tests for static files and test utilities 2017-04-26 09:21:04 -04:00
.travis.yml add flake8 to Travis testing 2017-07-24 14:46:10 -04:00
backport.py use disutils find_executable instead of which 2017-09-20 14:09:30 -04:00
COPYING tests for static files and test utilities 2017-04-26 09:21:04 -04:00
pytest.ini tests for static files and test utilities 2017-04-26 09:21:04 -04:00
README.md tests for static files and test utilities 2017-04-26 09:21:04 -04:00
tox.ini deal with flake8 fails 2017-04-26 09:33:32 -04:00

ansible-inventory-backport

This repository hosts the script backport.py as a stand-alone implementation of the ansible-inventory CLI command that works for Ansible 2.2 and 2.3 versions.

Using

./backport.py -i your_inventory --list

Testing

Inside of current directory:

py.test
flake8

Running against multiple Ansible versions is a work in progress.

History

The original branch-point was the ansible-inventory pull request in the Ansible repository.

github.com/bcoca/ansible@a689d6a54b/lib/ansible/cli/inventory.py

The first version of this backport was developed by Chris Church.

https://gist.github.com/cchurch/3b6027d3816c0ea3efe42b55ba924c09

This repository will provide the upstream for future changes, as well as tests.

Changelog

Changes to the ansible-inventory development will need to be applied to this script if possible/applicable, but its development may also diverge.

  • add ansible_facts to INTERNAL_VARS
  • flake8 compliance