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 #600 from geerlingguy/pre-provision-scripts
Browse files Browse the repository at this point in the history
Fixes #598: Add support for pre_provision_scripts.
  • Loading branch information
geerlingguy committed May 11, 2016
2 parents eb8e0b4 + 3d1f719 commit 8ab9dd9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 3 additions & 2 deletions example.config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,9 @@ composer_home_group: "{{ drupalvm_user }}"
# composer_global_packages:
# - { name: phpunit/phpunit, release: '@stable' }

# Run specified scripts after VM is provisioned. Path is relative to the
# `provisioning/playbook.yml` file.
# Run specified scripts before or after VM is provisioned. Path is relative to
# the `provisioning/playbook.yml` file.
pre_provision_scripts: []
post_provision_scripts: []
# - "../examples/scripts/configure-solr.sh"

Expand Down
5 changes: 5 additions & 0 deletions provisioning/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
- include: tasks/init-redhat.yml
when: ansible_os_family == 'RedHat'

- name: Run configured pre-provision shell scripts.
script: "{{ item }}"
with_items: "{{ pre_provision_scripts }}"
when: pre_provision_scripts is defined

- name: Set the PHP webserver daemon correctly when nginx is in use.
set_fact:
php_webserver_daemon: nginx
Expand Down

0 comments on commit 8ab9dd9

Please sign in to comment.