Hari Sekhon - Ansible
February 3, 2026 ยท View on GitHub
Quick Ansible Doc
See the Ansible page in the HariSekhon/Knowledge-Base repo.
Ansible Inventory
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.
Ansible Playbooks
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.
Check Diff, Then Run
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
Install Prometheus
ansible-playbook -i localhost, prometheus/playbook.yml
Install Node Exporter
ansible-playbook -i localhost, prometheus_node_exporter/playbook.yml
More Core Repos
Knowledge
DevOps Code
Containerization
CI/CD
Databases - DBA - SQL
DevOps Reloaded
Monitoring
Templates
Desktop
Spotify
The rest of my original source repos are here.
Pre-built Docker images are available on my DockerHub and can be re-generated using the my Dockerfiles repo.