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.
./backport.py -i your_inventory --list
Inside of current directory:
py.test
flake8
Running against multiple Ansible versions is a work in progress.
The original branch-point was the ansible-inventory
pull request in
the Ansible repository.
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.
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