Skip to main content

Ansible Inventory CRUD library

Project description

This is a library to manipulate Ansible Inventories.

It's independent of ansible by design, so that it doesn't need to track
ansible code and is version independent.

It only relies on what ansible expects as inventories (the json structure),
which hasn't changed for a long time now.

A standard inventory json is like this:

```
{
_meta:{
hostvars:{
<hostname>:{
var1: value1
}
}
},
all:{
children: [],
vars:{
var2: value2
},
},
groupname1:{
children:[],
hosts:[],
}
groupname2:{
children:[],
vars:{
var3: value3
},
}
}
```

This lib allows the loading of multiple jsons into memory, and manipulate the
inventory objects, and vars precedence.

Usage will explained in documentation soon.

You can submit patches with git-review and gerrithub (``pip install git-review``)

# git clone https://review.gerrithub.io/evrardjp/ansible-inventory-manage
# git review -s
# git checkout -b my_super_patch
# git review -f



Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ansible-inventory-manage, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size ansible_inventory_manage-0.0.2-py3-none-any.whl (6.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size ansible_inventory_manage-0.0.2.tar.gz (6.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page