Name | Last change | Commits | More actions | ||
---|---|---|---|---|---|
31d0176badded systemd-analyze.yaml Hari Sekhon | |||||
b2ae70d4updated bash-tools Hari Sekhon | |||||
d82ecaadupdated prometheus.service Hari Sekhon | |||||
32660674updated node_exporter.service Hari Sekhon | |||||
acad77fcInitial commit Hari Sekhon | |||||
acad77fcInitial commit Hari Sekhon | |||||
acad77fcInitial commit Hari Sekhon | |||||
acad77fcInitial commit Hari Sekhon | |||||
acad77fcInitial commit Hari Sekhon | |||||
acad77fcInitial commit Hari Sekhon | |||||
acad77fcInitial commit Hari Sekhon | |||||
acad77fcInitial commit Hari Sekhon | |||||
acad77fcInitial commit Hari Sekhon | |||||
cc8ff1b8updated azure-pipelines.yml Hari Sekhon | |||||
4c5e8e90updated bitbucket-pipelines.yml Hari Sekhon | |||||
a2f392ffrenamed ansible-inventory.ini to inventory.ini Hari Sekhon | |||||
acad77fcInitial commit Hari Sekhon | |||||
2ae245a7updated Makefile Hari Sekhon | |||||
b7d8ab6eupdated README.md Hari Sekhon | |||||
26840d77added requirements.txt Hari Sekhon | |||||
41fe3104updated sonar-project.properties Hari Sekhon | |||||
Hari Sekhon - Ansible
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
Knowledge
DevOps Code
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 .