Loading repository data…
Loading repository data…
Ajaz3800 / repository
Production-ready SonarQube setup using Ansible, Docker, and manual installation. Includes PostgreSQL integration, systemd service, and DevOps best practices.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
Automated, production-ready deployment of SonarQube with PostgreSQL using Ansible. This project follows DevOps best practices, including modular roles, idempotent tasks, and secure configuration.
Ansible Control Node
│
▼
Target Server (Ubuntu)
├── SonarQube
├── PostgreSQL
└── Systemd Services
sonarqube-devops-setup
├── ansible
│ ├── ansible.cfg
│ ├── group_vars
│ │ └── all.yml
│ ├── inventory
│ │ └── hosts.ini
│ ├── playbook.yml
│ └── roles
│ └── sonarqube
│ ├── handlers
│ │ └── main.yml
│ ├── tasks
│ │ ├── config.yml
│ │ ├── install.yml
│ │ ├── main.yml
│ │ ├── postgres.yml
│ │ ├── service.yml
│ │ └── sysctl.yml
│ └── templates
│ ├── sonar.properties.j2
│ └── sonarqube.service.j2
├── assets
├── manual-installation
│ └── Manual_Installation.md
└── README.md
Ubuntu 20.04 / 22.04
Ansible is installed on the control node
SSH access to the target server
Minimum:
git clone https://github.com/your-username/sonarqube-devops-setup.git
cd sonarqube-devops-setup
Edit inventory/hosts.ini file:
[sonarqube]
your-server-ip ansible_user=ubuntu ansible_ssh_private_key_file=~/.ssh/id_rsa
ansible-playbook playbook.yml
Uses peer authentication for postgres user
Uses md5 authentication for application users
Automatically:
After deployment:
http://your-server-ip:9000
Username: admin
Password: admin
vm.max_map_count=262144
fs.file-max=65536
fe_sendauth: no password supplied
✔ Fix:
pg_hba.conf is correctly configuredlocal all postgres peer
local all all md5
Feel free to fork and contribute! Pull requests are welcome.
This project is licensed under the MIT License.
If you find this project helpful, please give it a star ⭐ on GitHub.