Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #601 from geerlingguy/ansible-cfg
Browse files Browse the repository at this point in the history
Fixes #505: Add ansible.cfg file to set a roles_path in Drupal VM directory
  • Loading branch information
geerlingguy committed May 12, 2016
2 parents f12b93b + 0ec0790 commit ca235ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Notes:
- Copy `example.config.yml` to `config.yml`.
3. Create a local directory where Drupal will be installed and configure the path to that directory in `config.yml` (`local_path`, inside `vagrant_synced_folders`).
4. Open Terminal, `cd` to this directory (containing the `Vagrantfile` and this README file).
5. (If you have Ansible installed on Mac/Linux) Run `$ sudo ansible-galaxy install -r provisioning/requirements.yml --force`.
5. (If you have Ansible installed on Mac/Linux) Run `$ ansible-galaxy install -r provisioning/requirements.yml --force`.
6. Type in `vagrant up`, and let Vagrant do its magic.

Note: *If there are any errors during the course of running `vagrant up`, and it drops you back to your command prompt, just run `vagrant provision` to continue building the VM from where you left off. If there are still errors after doing this a few times, post an issue to this project's issue queue on GitHub with the error.*
Expand Down Expand Up @@ -115,7 +115,7 @@ Drupal VM follows semantic versioning, which means your configuration should con

1. Read through the [release notes](https://github.com/geerlingguy/drupal-vm/releases) and add/modify `config.yml` variables mentioned therein.
2. Do a diff of my config.yml with the updated example.config.yml (e.g. `curl https://raw.githubusercontent.com/geerlingguy/drupal-vm/master/example.config.yml | git diff --no-index config.yml -`).
3. If Ansible is installed, update all roles locally (`sudo ansible-galaxy install -r provisioning/requirements.yml --force`).
3. If Ansible is installed, update all roles locally (`ansible-galaxy install -r provisioning/requirements.yml --force`).
4. Run `vagrant provision` to provision the VM, incorporating all the latest changes.

For major version upgrades (e.g. 2.x.x to 3.x.x), it may be simpler to destroy the VM (`vagrant destroy`) then build a fresh new VM (`vagrant up`) using the new version of Drupal VM.
Expand Down
2 changes: 2 additions & 0 deletions ansible.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[defaults]
roles_path = ./roles

0 comments on commit ca235ab

Please sign in to comment.