Oliver Davies
eb0f90f479
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. |
||
---|---|---|
config/sync | ||
docs/images | ||
tools/ansible | ||
web/modules/custom/simple_message | ||
.gitignore | ||
ansible.cfg | ||
composer.json | ||
composer.lock | ||
README.md | ||
Vagrantfile |
Dransible
Prerequisites
- Ansible
- Vagrant
- Recommended: Vagrant::Hostsupdater plugin
Installation
-
Download roles from Galaxy:
ansible-galaxy install -r tools/ansible/requirements.yml
-
Start the server:
vagrant up
-
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.If you go to
http://dransible
then you should see a Forbidden error as the application is not yet present on the server. -
Deploy the application:
ansible-playbook tools/ansible/deploy.yml
After this,
http://dransible
should show an installed Drupal website.