{"id":15081277,"url":"https://github.com/lily-g1/web_environment_with_ansible","last_synced_at":"2026-01-02T23:32:17.617Z","repository":{"id":244164713,"uuid":"814454000","full_name":"Lily-G1/web_environment_with_ansible","owner":"Lily-G1","description":"automated configuration of a web hosting environment with ansible","archived":false,"fork":false,"pushed_at":"2024-06-26T23:03:56.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T19:17:33.714Z","etag":null,"topics":["ansible","ansible-roles","apache","bind9-dns","configuration-management","devops","letsencrypt","linux-admin","linux-environment","mysql","ssl-certificates","sysadmin","virtual-hosts","webhosting"],"latest_commit_sha":null,"homepage":"","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Lily-G1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-13T03:45:07.000Z","updated_at":"2024-06-26T23:03:59.000Z","dependencies_parsed_at":"2024-06-13T07:36:15.617Z","dependency_job_id":"971a6ae6-6123-4fb3-96e7-260e951271de","html_url":"https://github.com/Lily-G1/web_environment_with_ansible","commit_stats":{"total_commits":21,"total_committers":1,"mean_commits":21.0,"dds":0.0,"last_synced_commit":"3c739e11b7fce012b47ec5158d14df52fdf5942e"},"previous_names":["lily-g1/web_environment_with_ansible"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lily-G1%2Fweb_environment_with_ansible","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lily-G1%2Fweb_environment_with_ansible/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lily-G1%2Fweb_environment_with_ansible/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lily-G1%2Fweb_environment_with_ansible/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lily-G1","download_url":"https://codeload.github.com/Lily-G1/web_environment_with_ansible/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243918630,"owners_count":20368745,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-roles","apache","bind9-dns","configuration-management","devops","letsencrypt","linux-admin","linux-environment","mysql","ssl-certificates","sysadmin","virtual-hosts","webhosting"],"created_at":"2024-09-25T06:00:27.662Z","updated_at":"2026-01-02T23:32:17.587Z","avatar_url":"https://github.com/Lily-G1.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Web Hosting Environment with Ansible\nThis repository contains an ansible playbook that automates the configuration of a Linux web hosting infrastructure featuring Apache web server, MySQL \u0026 BIND9 DNS   \n\nVarious components of the playbook have been seperated into 'roles' for better management, organization and reusability.  \n- **base**: Runs the basic tasks involved. These include the installation of packages and dependencies required  \n- **mysql**: This role contains tasks that perform a secure MySQL configuration. Ansible used to have a dedicated module for this but it is now deprecated. These tasks 'manually' perform the same actions such as : disable remote root login, create root user + password, remove default test database, etc  \n- **dns**: configures Bind9 for our domain. This involves creating a hosted zone, setting up DNS records and specifying forwarders  \n- **web-server**: creates a directory that hosts site files, sets permissions, and creates virtual host files  \n- **letsencrypt**: runs steps needed to request a SSL certfiicate from letsencrypt. I used this [tutorial](https://www.digitalocean.com/community/tutorials/how-to-acquire-a-let-s-encrypt-certificate-using-ansible-on-ubuntu-18-04) from Digital Ocean to accomplish this  \n- **security**: configures firewall settings for the server  \n- **play.yml** runs the entire playbook  \n- All variables are stored in the '**group_vars**' directory  \n\n## Improvement:\n- Enhance security by using ansible-vault to store sensitive information such as passwords  \n- Include an Intrusion Detection system to monitor network traffic \u0026 protect against malicious activities  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flily-g1%2Fweb_environment_with_ansible","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flily-g1%2Fweb_environment_with_ansible","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flily-g1%2Fweb_environment_with_ansible/lists"}