Awesome
Hari Sekhon - Ansible
<!-- TODO: Replace Azure DevOps Pipeline ID here --> <!-- INDEX_START --> <!-- INDEX_END -->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
<!-- OTHER_REPOS_START -->Knowledge
<!-- Not support on GitHub Markdown: <iframe src="https://raw.githubusercontent.com/HariSekhon/HariSekhon/main/knowledge.md" width="100%" height="500px"></iframe> Does nothing: <embed src="https://raw.githubusercontent.com/HariSekhon/HariSekhon/main/knowledge.md" width="100%" height="500px" /> -->DevOps Code
<!-- [![Gist Card](https://github-readme-stats.vercel.app/api/gist?id=f8f551332440f1ca8897ff010e363e03)](https://gist.github.com/HariSekhon/f8f551332440f1ca8897ff010e363e03) -->Containerization
CI/CD
DBA - SQL
DevOps Reloaded
Templates
Misc
The rest of my original source repos are here.
Pre-built Docker images are available on my DockerHub.
<!-- 1x1 pixel counter to record hits --> <!-- OTHER_REPOS_END -->