{"id":22021022,"url":"https://github.com/s-damian/ansible-web-server-debian","last_synced_at":"2025-05-07T06:05:40.024Z","repository":{"id":57431270,"uuid":"524564080","full_name":"s-damian/ansible-web-server-debian","owner":"s-damian","description":"Ansible - Web Server Nginx / Apache / PHP / MariaDB / Linux","archived":false,"fork":false,"pushed_at":"2023-01-29T09:36:01.000Z","size":62,"stargazers_count":9,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-07T06:05:30.181Z","etag":null,"topics":["ansible","apache","debian","deploy","deployment","deployment-automation","lamp","lamp-server","lamp-stack","lemp","lemp-server","lemp-stack","linux","mariadb","nginx","php","webserver"],"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/s-damian.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}},"created_at":"2022-08-14T03:32:56.000Z","updated_at":"2024-11-03T23:53:33.000Z","dependencies_parsed_at":"2023-02-15T22:00:34.768Z","dependency_job_id":null,"html_url":"https://github.com/s-damian/ansible-web-server-debian","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-damian%2Fansible-web-server-debian","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-damian%2Fansible-web-server-debian/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-damian%2Fansible-web-server-debian/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-damian%2Fansible-web-server-debian/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/s-damian","download_url":"https://codeload.github.com/s-damian/ansible-web-server-debian/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252823918,"owners_count":21809713,"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","apache","debian","deploy","deployment","deployment-automation","lamp","lamp-server","lamp-stack","lemp","lemp-server","lemp-stack","linux","mariadb","nginx","php","webserver"],"created_at":"2024-11-30T06:09:07.224Z","updated_at":"2025-05-07T06:05:39.999Z","avatar_url":"https://github.com/s-damian.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible - Nginx or Apache Web Server\n\n## Ansible Playbook : LEMP or LAMP Server on Debian\n\nThis Ansible script allows you to automate the configuration of a **LEMP web server** or a **LAMP web server** on **Debian 11** server.\n\nThese **Ansible roles** will automate the deployment for you:\n\n* Install **Nginx** or **Apache**\n* Install **MariaDB** (supported versions: 10.5, 10.6, 10.7, 10.8, 10.9, 10.10)\n* Install **PHP** (supported versions: 8.0, 8.1, 8.2)\n* Install **PhpMyAdmin**\n* Create your Nginx / Apache Virtual Hosts (one per domain)\n* Create your MariaDB databases (one per domain)\n* Preparing the skeleton of your websites\n\n[![Ansible](https://raw.githubusercontent.com/s-damian/medias/main/technos/ansible.webp)](https://github.com/s-damian)\n[![Linux](https://raw.githubusercontent.com/s-damian/medias/main/technos/linux.webp)](https://github.com/s-damian)\n[![PHP](https://raw.githubusercontent.com/s-damian/medias/main/technos/php.webp)](https://github.com/s-damian)\n[![MariaDB](https://raw.githubusercontent.com/s-damian/medias/main/technos/mariadb.webp)](https://github.com/s-damian)\n[![Nginx](https://raw.githubusercontent.com/s-damian/medias/main/technos/nginx.webp)](https://github.com/s-damian)\n[![Apache](https://raw.githubusercontent.com/s-damian/medias/main/technos/apache.webp)](https://github.com/s-damian)\n\n### Author\n\nThis Ansible Ansible Playbook was made by [Stephen Damian](https://github.com/s-damian)\n\n\n## Getting Started\n\n### Requirements:\n\n* Debian 11\n* SSH root access\n\n### Introduction:\n\nThis example is configured for a Debian **local server**.\n\nIf you want to configure there for a Debian **remote server**, you need to configure the ```ansible/hosts``` file.\n\n### Create your home user (if it doesn't exist yet):\n\n```\nadduser user_test\n```\n\n### Update and upgrade:\n\n```\nsudo apt-get update \u0026\u0026 sudo apt-get upgrade\n```\n\n### Install Ansible:\n\n```\nsudo apt-get install ansible\n```\n\n### Configure web-server.yml:\n\nYou need to configure your ```ansible/web-server.yml``` file.\n\nYou must configure at least all the ```REQUIRED``` lines.\n\n### Ansible folder:\n\nSend the ```ansible``` folder present in this package to the ```/etc``` folder of your Debian server.\n\n### Run the Ansible script:\n\n```\nansible-playbook -i /etc/ansible/hosts /etc/ansible/web-server.yml\n```\n\n### See the result:\n\n* www.your-domain.com\n* www.your-domain.com/phpmyadmin\n\n\n## Go further\n\n### Security\n\nYou must change the path of PhpMyAdmin, or remove PhpMyAdmin from public access.\n\nDon't forget to secure your server with iptables, fail2ban, etc.\n\nYou can Configure SSL for your websites (with Certbot for example).\n\n### Performance\n\nTo improve performance, you can add cache to your Nginx / Apache configuration.\n\n### Send emails\n\nTo make your server able to send mails, you can use postfix.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs-damian%2Fansible-web-server-debian","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fs-damian%2Fansible-web-server-debian","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs-damian%2Fansible-web-server-debian/lists"}