An example for deploying a Drupal application with Ansible, Ansistrano and Ansible Vault
Find a file
Oliver Davies eb0f90f479 Add a block of post-update tasks
Add tasks to run after the site has been updated, but only if the site
has not been installed from scratch.

There's no point in importing config or running database updates on a
freshly installed site.
2020-06-16 22:01:56 +01:00
config/sync Update the default site name 2020-05-01 11:44:54 +01:00
docs/images Update images 2020-06-15 23:41:26 +01:00
tools/ansible Add a block of post-update tasks 2020-06-16 22:01:56 +01:00
web/modules/custom/simple_message Revert "Update to Drupal 9" 2020-06-16 21:53:55 +01:00
.gitignore Set roles path in project 2020-05-06 19:01:56 +01:00
ansible.cfg Enable SSH pipelining 2020-06-16 20:00:32 +01:00
composer.json Revert "Update to Drupal 9" 2020-06-16 21:53:55 +01:00
composer.lock Revert "Update to Drupal 9" 2020-06-16 21:53:55 +01:00
README.md Add screenshots 2020-01-29 00:39:52 +00:00
Vagrantfile Create Vagrantfile 2019-12-05 16:09:58 +00:00

Dransible

Prerequisites

Installation

  1. Download roles from Galaxy:

    ansible-galaxy install -r tools/ansible/requirements.yml
    
  2. Start the server:

    vagrant up
    
  3. Provision the server:

    ansible-playbook tools/ansible/provision.yml
    

    If you go to the server IP address (http://192.168.33.10) then you should see the Apache2 default page.

    The Apache2 Ubuntu default page

    If you go to http://dransible then you should see a Forbidden error as the application is not yet present on the server.

    A 'Forbidden' error when trying to load the application

  4. Deploy the application:

    ansible-playbook tools/ansible/deploy.yml
    

    After this, http://dransible should show an installed Drupal website.

    The homepage of the installed Drupal website