The purpose of this project is to populate an Ansible Tower installation from a configuration file.
pip install ansible-tower-cli
current version requires installation from tower-cli issue-9-unstable branch for dynamic group support
make sure you have ~/.tower_cli.cfg
configured with something like:
cat << eof >> [general] host = http://tower.example.com username = admin password = admin verify_ssl = false
eof
Usage is simple. Declare the options you want in config.yml, and run the script:
./tower_populator config.yml
tower-cli doesn't do everything the Tower UI does (yet), so there are some limitations:
- All credential types use
username
andpassword
as options, even AWS, Rackspace, etc. This is a known issue.