{"id":15151557,"url":"https://github.com/tgrants/php-dev-vm-ansible","last_synced_at":"2025-04-07T09:45:35.798Z","repository":{"id":256826126,"uuid":"854275230","full_name":"tgrants/php-dev-vm-ansible","owner":"tgrants","description":"PHP development VM setup using Ansible, made for students.","archived":false,"fork":false,"pushed_at":"2024-10-17T20:29:33.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T12:53:47.777Z","etag":null,"topics":["ansible","development-tools","lamp-stack","php","virtual-machine","virtualbox-vm","web-development"],"latest_commit_sha":null,"homepage":"","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tgrants.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-08T20:44:46.000Z","updated_at":"2024-10-17T20:29:36.000Z","dependencies_parsed_at":"2024-10-20T17:03:29.011Z","dependency_job_id":null,"html_url":"https://github.com/tgrants/php-dev-vm-ansible","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"a194a8b0d894b74862f5a6b57e0a0e7440c34689"},"previous_names":["tgrants/php-dev-vm-ansible"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tgrants%2Fphp-dev-vm-ansible","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tgrants%2Fphp-dev-vm-ansible/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tgrants%2Fphp-dev-vm-ansible/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tgrants%2Fphp-dev-vm-ansible/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tgrants","download_url":"https://codeload.github.com/tgrants/php-dev-vm-ansible/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247631273,"owners_count":20970038,"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","development-tools","lamp-stack","php","virtual-machine","virtualbox-vm","web-development"],"created_at":"2024-09-26T15:04:21.423Z","updated_at":"2025-04-07T09:45:35.754Z","avatar_url":"https://github.com/tgrants.png","language":"Jinja","readme":"# PHP development VM configuration with ansible for students\n\n## Features\n\n* Lightweight\n\t* uses Xfce\n\t* ~4 GiB initial virtual disk size with VirtualBox\n\t* RAM \u003e= 2 GiB\n* Includes\n\t* Various tools\n\t\t* PHP and Composer\n\t\t* Sqlite3\n\t\t* VSCode and Git\n\t* Install scripts\n\t\t* Node.js and npm\n\t\t* MariaDB\n\n## Instructions\n\n* Create the virtual machine:\n\t* Install [Debian](https://www.debian.org/) on a [Virtualbox](https://www.virtualbox.org/) VM\n\t\t* Create users (or update `hosts`)\n\t\t\t* Set root password to `changeme`\n\t\t\t* Create `user` with password `changeme`\n\t\t* Software selection - select only `SSH server`\n\t* Prepare the VM for ansible\n\t\t* Make sure you can ssh into the VM\n\t\t\t* Update VM network settings `Machine \u003e Settings \u003e Network \u003e Attached to \u003e Bridged Adapter`\n\t\t\t* Get the ip address with `ip a` and update `hosts`\n\t\t\t* Copy key by SSH-ing into the VM `ssh user@192.168.x.y`\n\t\t* Install packages and add sudo privileges to user\n\t\t\t* Log in as root with `su -` and install packages `apt install sudo python3`\n\t\t\t* Add user to sudoers `adduser user sudo`\n\t* Setup the VM `ansible-playbook playbooks/setup.yml`\n* Trim virtual disk:\n\t* Remove all unnecessary files `ansible-playbook playbooks/cleanup.yml`\n\t* On VM:\n\t\t* `sudo dd if=/dev/zero of=/bigemptyfile bs=4096k status=progress`\n\t\t* `sudo rm -f /bigemptyfile`\n\t* On host:\n\t\t* `vboxmanage modifymedium /mnt/storage/VBOX/phpdev/phpdev.vdi --compact`\n\t\t\t* Edit this path to match your .vdi file\n\n## Other information\n\n### Updates\n\nIt is recommended to create a new install every time you run a new version of these playbooks.\n\nTo see changes, see [Releases](https://github.com/tgrants/php-dev-vm-ansible/releases) in Github.\n\n### License\n\nThis repository is licensed under `The Unlicense`. See `LICENSE` for more information.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftgrants%2Fphp-dev-vm-ansible","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftgrants%2Fphp-dev-vm-ansible","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftgrants%2Fphp-dev-vm-ansible/lists"}