Drupalize - deploy drupal site(s) on debian with ansible from scratch

Imagine you ordered a virtual machine and you want to host your own drupal site(s) ... Umm and it should be done with one command?! Ansible is way to do it. I wouldn't talk much about ansible and how to use it in general (google is your friend), I just wanted to share my ansible-playbook.
https://github.com/vsefer/ansible-drupal
Playbook has 4 roles:
- essential - copies ssh keys, configures bashrc and firewall (iptables), installs essential packages
- database - installs mariadb mysql database server, creates user and database for drupal site(s)
- webserver - installs and configures nginx and php5-fpm package, downloads and installs drupal site with drush
- memcache - installs and configures memcache
Get repo from github.com:
git clone git@github.com:vsefer/ansible-drupal.git
Run playbook:
ansible-playbook -i '9.9.9.9,' drupalize.yml --extra-vars "domain= drupalver= dbrootpass= dbuser= dbpass= dbname="
Variables:
domain - enter your domain drupalver - enter drupal version number ( i.e. 7.41 ) dbrootpass - enter password for user called superuser (aka root) dbuser - enter drupal database user name dbpass - enter drupal database user password dbname - enter drupal database name
Drupal is installed in /srv/www/yourdomain.com/htdocs
Go to http://yourdomain.com/
Log in with user admin and password admin.
Add new comment