Q: I need to retrieve the inventory_id from ansible tower.
A: Использование tower-cli
Использование: инвентарь tower-get get [ОПЦИИ] [ID]
Q: How to add special character password to tower-cli config?
A: Использовать tower_cli.cfg
$ cat $HOME/.tower_cli.cfg
[general]
host = http://srv.example.com
username = admin
password = password
verify_ssl = no