{"id":23207708,"url":"https://github.com/pivaleco/ansible-fullstack","last_synced_at":"2026-04-09T16:03:20.246Z","repository":{"id":74387465,"uuid":"81885750","full_name":"PivaleCo/ansible-fullstack","owner":"PivaleCo","description":"An set of ansible roles and installation instructions for deploying Ubuntu 14.04 / 16.04 servers for Drupal / PHP websites.","archived":false,"fork":false,"pushed_at":"2017-02-14T13:20:07.000Z","size":46,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-09T07:03:46.694Z","etag":null,"topics":["ansible","ansible-playbooks","ansible-roles","drupal","ubuntu","ubuntu-server","ubuntu1404","ubuntu1604","virtualmin"],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/PivaleCo.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":"2017-02-14T00:17:56.000Z","updated_at":"2024-03-23T14:42:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"ea393db0-c0b2-42f9-92b9-e127c2a6769e","html_url":"https://github.com/PivaleCo/ansible-fullstack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PivaleCo/ansible-fullstack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PivaleCo%2Fansible-fullstack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PivaleCo%2Fansible-fullstack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PivaleCo%2Fansible-fullstack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PivaleCo%2Fansible-fullstack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PivaleCo","download_url":"https://codeload.github.com/PivaleCo/ansible-fullstack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PivaleCo%2Fansible-fullstack/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266768406,"owners_count":23981355,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-playbooks","ansible-roles","drupal","ubuntu","ubuntu-server","ubuntu1404","ubuntu1604","virtualmin"],"created_at":"2024-12-18T17:20:07.907Z","updated_at":"2026-04-09T16:03:20.154Z","avatar_url":"https://github.com/PivaleCo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible + Virtualmin + Drupal Full Stack provisioning\n\n## Summary\n\nCreated for ease of provisioning Full Stack Drupal applications.\n\n\"Full Stack\" here means everything required to have a unified production, staging\nand development enviroments set up for a Drupal 7 project.\n\n### Install instructions\n\n### Install ansible from manager machine\n\n```\nsudo apt-add-repository -y ppa:ansible/ansible\nsudo apt-get update\nsudo apt-get install -y ansible\n```\n\n### Ensure the remote hosts have your local ssh key\n\n```\nssh-copy-id root@PROD_HOST\nssh-copy-id root@DEV_HOST\n```\n\nwhere PROD_HOST is the hostname or IP address of the Production server\nand DEV_HOST is the hostname or IP address of the Development server (which has the staging and dev versions of the website)\n\n\n### Copy the `example.hosts` template file to NAME_OF_PROJECT.hosts and edit that file point at the correct remote servers\n\n```\ncp example.hosts NAME_OF_PROJECT.hosts\nnano hosts\n```\n\n### Alter the setup variables file\n\n* Edit the group_vars/all/setup_vars.yml file as required.\n\n### Ensure python and python-simplejson prerequisite on the remote host(s)\n\n```\nansible -i HOSTFILE multi --sudo -m raw -a \"sudo apt-get update \u0026\u0026 sudo apt-get install -y python-simplejson\"\n```\n\n### Run the setup playbook\n\n```\nansible-playbook -i NAME_OF_PROJECT.hosts setup.yml\n```\n\nCheck for errors in the PLAY RECAP\n\n### Run the virtualmin post install wizard\n\n```\nhttps://PROD_HOST:12340\nhttps://DEV_HOST:12340 (if set up as a separate host from prod in hosts inventory file)\n```\n\n* Set whatever parameters in the wizard you deem appropriate.\n* Set the MySQL root password to the same as the server's root password.\n* It's recommended to set \"Password storage mode\" to \"Only store hashed passwords\"\n\n### Copy the passwords and SSH keys to somewhere safe\n\n* The passwords and SSH keys for the various user accounts (including root) have now been fetched to the fetched directory.\n* For the SSH keys, make sure these are added to your git repositories.\n* __Pro-tip: Use an encrypted password manager such as [Keepass](http://keepass.info/)__\n\n### Alter the deploy variables file\n\n* Edit the group_vars/all/deploy_vars.yml file as required.\n\n### For first time deployments drop db.sql.gz and files.tar.gz in the deploy directory\n\n* deploy/db.sql.gz should be a gzipped sql dump of the database to import on all environments\n* deploy/files.tar.gz should be a gzip file with the sites/default/files contents to import on all environments\n\n### Run the deploy playbook\n\n```\nansible-playbook -i NAME_OF_PROJECT.hosts deploy.yml\n```\n\n* Check for errors in the PLAY RECAP\n* If the play hangs on git commands then it could be due to the remote repository not being accessible- ensure the SSH public keys are copied correctly as above\n\n## TODOS:\n* Add heal script to setup playbook\n* Setup ufw for all hosts\n* Mailcatcher on stage and dev environments\n* Setup up optional nginx to fullstack role and configure as needed (via docker?)\n* Check Apache Solr configuration\n* Set up optional installation of PHP 5.6 to fullstack role via PPA (via docker?)\n* Set up virtualmin backup configuration (new host) and provide backup options in project vars\n* Add apt-get update/upgrade playbook\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpivaleco%2Fansible-fullstack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpivaleco%2Fansible-fullstack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpivaleco%2Fansible-fullstack/lists"}