Skip to content

HariSekhon/Ansible

Repository files navigation

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

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

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

Knowledge

Knowledge-Base Diagrams-as-Code

DevOps Code

DevOps-Bash-tools DevOps-Python-tools DevOps-Perl-tools DevOps-Golang-tools

Containerization

Kubernetes-configs Dockerfiles

CI/CD

GitHub-Actions Jenkins

Databases - DBA - SQL

SQL-scripts

DevOps Reloaded

HAProxy-configs Terraform Packer Ansible Environments

Monitoring

Nagios-Plugins Nagios-Plugin-Kafka Prometheus

Templates

Templates Template-repo

Desktop

TamperMonkey Hammerspoon MPV-Scripts

Spotify

Spotify-tools Spotify-playlists

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.

About

Ansible playbooks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors