Admiral is a lightweight Ansible inventory database management tool
Admiral is a command line tool to manage ansible inventory. It can also expose the inventory to ansible as a full inventory structure. As monitoring is also important, the tool can also expose the inventory in Prometheus static file structure where all the host groups are set as host 'groups' label.
The tool is expecting to find a toml configuration file with the database details in one of the following locations:
- /etc/admiral/config.toml
- ./config.toml
- $HOME/.admiral.toml
A template of the configuration file can be found at the repository https://github.com/via-justa/admiral
-h, --help help for admiral
- admiral completion - Generates completion scripts (Bash for Linux and MacOS; PowerShell for windows)
- admiral copy - create a new record from existing record
- admiral create - create or modify existing record
- admiral delete - delete existing record
- admiral import - bulk import hosts groups and child group relationships
- admiral inventory - Output Ansible compatible inventory structure
- admiral ping - run
ansible -m ping
on requested host - admiral prometheus - Output prometheus compatible SD file structure
- admiral ssh - ssh to inventory host
- admiral version - Print client version
- admiral view - view existing record