{"id":15292226,"url":"https://github.com/sitepilot/stack-openlitespeed","last_synced_at":"2025-07-25T20:31:48.678Z","repository":{"id":39573263,"uuid":"507030240","full_name":"sitepilot/stack-openlitespeed","owner":"sitepilot","description":"Ansible playbooks for provisioning web servers optimized for WordPress and Laravel.","archived":false,"fork":false,"pushed_at":"2022-06-26T20:26:17.000Z","size":41,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-16T10:47:46.959Z","etag":null,"topics":["laravel","openlitespeed","stack","wordpress"],"latest_commit_sha":null,"homepage":"https://sitepilot.io","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sitepilot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-24T13:57:53.000Z","updated_at":"2024-07-12T12:56:14.000Z","dependencies_parsed_at":"2022-08-24T03:40:59.595Z","dependency_job_id":null,"html_url":"https://github.com/sitepilot/stack-openlitespeed","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sitepilot%2Fstack-openlitespeed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sitepilot%2Fstack-openlitespeed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sitepilot%2Fstack-openlitespeed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sitepilot%2Fstack-openlitespeed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sitepilot","download_url":"https://codeload.github.com/sitepilot/stack-openlitespeed/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227614682,"owners_count":17793949,"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":["laravel","openlitespeed","stack","wordpress"],"created_at":"2024-09-30T16:17:01.353Z","updated_at":"2024-12-01T19:08:44.610Z","avatar_url":"https://github.com/sitepilot.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenLiteSpeed Stack\n\nAnsible playbooks for provisioning optimized web servers for WordPress and Laravel. These playbooks are used by Autopilot (our cloud server control panel) and are perfect for:\n\n* Local development environments.\n* High-performance production servers (with caching).\n \n## Requirements\n\n* Ansible\n* Ubuntu 20.04 LTS (Desktop/Server)\n\n## Inventory\n\nBefore you can provision a [resource](#resources) you've to provision a server first. Add your inventory to the [hosts](./hosts) folder and provision a server or group using the following command:\n\nExample:\n```bash\n# Provision a server (or group)\nansible-playbook server.yml -e host=\u003cserver\u003e\n```\n\n## Resources\n\nResource playbooks use variables defined in a resource file, add your resources to the [resources](./resources) folder and reference the file while running a playbook. You can find resource examples in the [tests](./tests) folder.\n\n```bash\n# Example\nansible-playbook site.yml -e @resources/sites/my-site.yml\n```\n\nAvailable resource variables are defined in the `defaults` folder of a resource [role](./roles) and validated in the first `assert` task of each tasks file.\n\n* Site variables: [./roles/site/defaults/main.yml](./roles/site/defaults/main.yml)\n* User variables: [./roles/user/defaults/main.yml](./roles/user/defaults/main.yml)\n* Database variables: [./roles/database/defaults/main.yml](./roles/database/defaults/main.yml)\n\n### Site\n\n```bash\n# Provision a site\nansible-playbook site.yml -e @resources/sites/my-site.yml\n\n# Backup a site\nansible-playbook site.yml -e @resources/sites/my-site.yml -t backup\n\n# List site backups\nansible-playbook site.yml -e @resources/sites/my-site.yml -t backup/list\n\n# Restore site backup\nansible-playbook site.yml -e @resources/sites/my-site.yml -t backup/restore\n\n# Destroy site backup\nansible-playbook site.yml -e @resources/sites/my-site.yml -t backup/destroy\n\n# Destroy a site\nansible-playbook site.yml -e @resources/sites/my-site.yml -t destroy\n```\n\n### Database\n\n```bash\n# Provision a database\nansible-playbook database.yml -e @resources/databases/my-database.yml\n\n# Backup a database\nansible-playbook database.yml -e @resources/databases/my-database.yml -t backup\n\n# List database backups\nansible-playbook database.yml -e @resources/databases/my-database.yml -t backup/list\n\n# Restore database backup\nansible-playbook database.yml -e @resources/databases/my-database.yml -t backup/restore\n\n# Destroy database backup\nansible-playbook database.yml -e @resources/databases/my-database.yml -t backup/destroy\n\n# Destroy a database\nansible-playbook database.yml -e @resources/databases/my-database.yml -t destroy\n```\n\n### User\n\n```bash\n# Provision a user\nansible-playbook user.yml -e @resources/users/my-user.yml\n\n# Destroy a user\nansible-playbook user.yml -e @resources/users/my-user.yml -t destroy\n```\n\n## Web Apps\n\n* phpMyAdmin: `https://{{ site_domain }}/-/phpmyadmin/`\n* Mailhog: `https://{{ site_domain }}/-/mailhog/`\n* Node Exporter: `https://{{ site_domain }}/-/monitor/`\n\n## Filesystem\n\n* Vhosts: `/usr/local/lsws/conf/vhosts`\n* MariaDB data: `/opt/sitepilot/stack/mariadb/data`\n\n### Site Files\n\n* Public path: `/opt/sitepilot/sites/{{ site_name }}/files`\n* Logs path: `/opt/sitepilot/sites/{{ site_name }}/logs`\n* Config path: `/opt/sitepilot/sites/{{ site_name }}/.config`\n* User home path: `/opt/sitepilot/sites/{{ site_name }}/home`\n\n## Author\n\nThese playbooks are developed and maintained by [Nick Jansen](https://sitepilot.io/).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsitepilot%2Fstack-openlitespeed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsitepilot%2Fstack-openlitespeed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsitepilot%2Fstack-openlitespeed/lists"}