Provides a dynamic inventory from openITCOCKPIT of all satellites and the master server.
You can place the configuration under /etc/ansible/openitcockpit.ini, ~/.ansible/openitcockpit.ini or ./openitcockpit.ini
[openitcockpit]
url = https://127.0.0.1
apikey = HEREAPIKEYFROMPROFILE
master_hostname = localhost
master_address = 127.0.0.1
validate_certs = False
If "master_address" is set to 127.0.0.1, ansible_connection will be set to local.
This script will always return the inventory data for the master server.
ansible-playbook -i openitcockpit.py site.yml