https://github.com/harisekhon/ansible
Ansible playbooks
https://github.com/harisekhon/ansible
Last synced: 4 months ago
JSON representation
Ansible playbooks
- Host: GitHub
- URL: https://github.com/harisekhon/ansible
- Owner: HariSekhon
- License: mit
- Created: 2024-10-08T23:39:07.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-11-24T18:39:01.000Z (11 months ago)
- Last Synced: 2024-11-24T19:34:43.133Z (11 months ago)
- Language: Shell
- Size: 76.2 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hari Sekhon - Ansible
[](https://github.com/HariSekhon/Ansible/stargazers)
[](https://github.com/HariSekhon/Ansible/network)
[](https://github.com/HariSekhon/Ansible#Hari-Sekhon---Ansible)
[](https://github.com/HariSekhon/Ansible/blob/master/LICENSE)
[](https://www.linkedin.com/in/HariSekhon/)
[](https://github.com/HariSekhon/Ansible/commits/master)[](https://app.codacy.com/gh/HariSekhon/Ansible/dashboard)
[](https://www.codefactor.io/repository/github/harisekhon/Ansible)
[](https://sonarcloud.io/dashboard?id=HariSekhon_Ansible)
[](https://sonarcloud.io/dashboard?id=HariSekhon_Ansible)
[](https://sonarcloud.io/dashboard?id=HariSekhon_Ansible)
[](https://sonarcloud.io/dashboard?id=HariSekhon_Ansible)
[](https://github.com/HariSekhon/DevOps-Bash-tools#hari-sekhon---devops-bash-tools)
[](https://github.com/HariSekhon/DevOps-Bash-tools#hari-sekhon---devops-bash-tools)[](https://brew.sh/)
[](https://alpinelinux.org/)
[](https://www.centos.org/)
[](https://www.debian.org/)
[](https://getfedora.org/)
[](https://www.redhat.com/en)
[](https://rockylinux.org/)
[](https://ubuntu.com/)[](https://harisekhon.github.io/CI-CD/)
[](https://dev.azure.com/harisekhon/GitHub/_build/latest?definitionId=15&branchName=master)
[](https://gitlab.com/HariSekhon/Ansible/pipelines)
[](https://bitbucket.org/HariSekhon/Ansible/addon/pipelines/home#!/)[](https://github.com/HariSekhon/Ansible)
[](https://gitlab.com/HariSekhon/Ansible)
[](https://dev.azure.com/HariSekhon/GitHub/_git/Ansible)
[](https://bitbucket.org/HariSekhon/Ansible)[](https://github.com/HariSekhon/Ansible/actions/workflows/ansible-playbook-syntax.yaml)
[](https://github.com/HariSekhon/Ansible/actions/workflows/validate.yaml)
[](https://github.com/HariSekhon/Ansible/actions/workflows/kics.yaml)
[](https://github.com/HariSekhon/Ansible/actions/workflows/grype.yaml)
[](https://github.com/HariSekhon/Ansible/actions/workflows/semgrep.yaml)
[](https://github.com/HariSekhon/Ansible/actions/workflows/semgrep-cloud.yaml)
[](https://github.com/HariSekhon/Ansible/actions/workflows/sonarcloud.yaml)
[](https://github.com/HariSekhon/Ansible/actions/workflows/systemd-analyze.yaml)
[](https://github.com/HariSekhon/Ansible/actions/workflows/trivy.yaml)
[](https://github.com/HariSekhon/Ansible/actions/workflows/yaml.yaml)- [Quick Ansible Doc](#quick-ansible-doc)
- [Ansible Inventory](#ansible-inventory)
- [Ansible Playbooks](#ansible-playbooks)
- [Check Diff, Then Run](#check-diff-then-run)
- [Install Prometheus](#install-prometheus)
- [Install Node Exporter](#install-node-exporter)
- [More Core Repos](#more-core-repos)
- [Knowledge](#knowledge)
- [DevOps Code](#devops-code)
- [Containerization](#containerization)
- [CI/CD](#cicd)
- [DBA - SQL](#dba---sql)
- [DevOps Reloaded](#devops-reloaded)
- [Templates](#templates)
- [Misc](#misc)## Quick Ansible Doc
See the [Ansible](https://github.com/HariSekhon/Knowledge-Base/blob/main/ansible.md) page in
the [HariSekhon/Knowledge-Base](https://github.com/HariSekhon/Knowledge-Base) repo.## Ansible Inventory
A template of a quick easy static Ansible inventory is here:
[inventory.ini](inventory.ini)
More advanced dynamic inventories that populate by querying things like cloud providers can be used via
[plugins](https://docs.ansible.com/ansible/latest/plugins/inventory.html).## Ansible Playbooks
Quickly install to a given host using `-i ,` with the trailing comma
to let Ansible know it is an inline host list not an [inventory.ini](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:```shell
ansible-playbook -i inventory.ini path/to/playbook.yml --check --diff
```If it look ok, then run it:
```shell
ansible-playbook -i inventory.ini path/to/playbook.yml
```### Install Prometheus
```shell
ansible-playbook -i localhost, prometheus/playbook.yml
```### Install Node Exporter
```shell
ansible-playbook -i localhost, prometheus_node_exporter/playbook.yml
```## More Core Repos
### Knowledge
[](https://github.com/HariSekhon/Knowledge-Base)
[](https://github.com/HariSekhon/Diagrams-as-Code)### DevOps Code
[](https://github.com/HariSekhon/DevOps-Bash-tools)
[](https://github.com/HariSekhon/DevOps-Python-tools)
[](https://github.com/HariSekhon/DevOps-Perl-tools)
[](https://github.com/HariSekhon/DevOps-Golang-tools)### Containerization
[](https://github.com/HariSekhon/Kubernetes-configs)
[](https://github.com/HariSekhon/Dockerfiles)### CI/CD
[](https://github.com/HariSekhon/GitHub-Actions)
[](https://github.com/HariSekhon/Jenkins)### DBA - SQL
[](https://github.com/HariSekhon/SQL-scripts)
### DevOps Reloaded
[](https://github.com/HariSekhon/Nagios-Plugins)
[](https://github.com/HariSekhon/HAProxy-configs)
[](https://github.com/HariSekhon/Terraform)
[](https://github.com/HariSekhon/Packer-templates)
[](https://github.com/HariSekhon/Nagios-Plugin-Kafka)### Templates
[](https://github.com/HariSekhon/Templates)
[](https://github.com/HariSekhon/Template-repo)### Misc
[](https://github.com/HariSekhon/Spotify-tools)
[](https://github.com/HariSekhon/Spotify-playlists)The rest of my original source repos are
[here](https://github.com/HariSekhon?tab=repositories&q=&type=source&language=&sort=stargazers).Pre-built Docker images are available on my [DockerHub](https://hub.docker.com/u/harisekhon/).
