Skip to content

HariSekhon/Ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Readme Card Readme Card

DevOps Code

Readme Card Readme Card Readme Card Readme Card

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.

About

Ansible playbooks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published