See the Ansible page in the HariSekhon/Knowledge-Base repo.
A template of a quick easy static Ansible inventory is here:
More advanced dynamic inventories that populate by querying things like cloud providers can be used via plugins.
Quickly install to a given host using -i <hostname>,
with the trailing comma
to let Ansible know it is an inline host list not an inventory.ini file.
Find a playbook you want, then run a dry run --check --diff
to see what it would do,
check your SSH config is set up with the right AWS pem keys etc:
ansible-playbook -i inventory.ini path/to/playbook.yml --check --diff
If it look ok, then run it:
ansible-playbook -i inventory.ini path/to/playbook.yml
ansible-playbook -i localhost, prometheus/playbook.yml
ansible-playbook -i localhost, prometheus_node_exporter/playbook.yml
The rest of my original source repos are here.
Pre-built Docker images are available on my DockerHub.