Home

Awesome

Hari Sekhon - Ansible

GitHub stars GitHub forks Lines of Code License My LinkedIn GitHub Last Commit

Codacy Badge CodeFactor Quality Gate Status Maintainability Rating Reliability Rating Security Rating

Python Linux Mac

Mac Homebrew Alpine CentOS Debian Fedora Redhat Rocky Ubuntu

<!-- TODO: Replace Azure DevOps Pipeline ID here -->

CI Builds Overview Azure DevOps Pipeline GitLab Pipeline BitBucket Pipeline

Repo on GitHub Repo on GitLab Repo on Azure DevOps Repo on BitBucket

Ansible Playbook Syntax Check Validation Kics Grype Semgrep Semgrep Cloud SonarCloud Systemd-Analyze Verify Trivy YAML

<!-- 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:

inventory.ini

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

Readme Card Readme Card

<!-- 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

Readme Card Readme Card Readme Card Readme Card

<!-- [![Gist Card](https://github-readme-stats.vercel.app/api/gist?id=f8f551332440f1ca8897ff010e363e03)](https://gist.github.com/HariSekhon/f8f551332440f1ca8897ff010e363e03) -->

Containerization

Readme Card Readme Card

CI/CD

Readme Card Readme Card

DBA - SQL

Readme Card

DevOps Reloaded

Readme Card Readme Card Readme Card Readme Card Readme Card

Templates

Readme Card Readme Card

Misc

Readme Card Readme Card

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 -->