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

Commit

Permalink
Fixes #598: Add support for pre_provision_scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
geerlingguy committed May 10, 2016
1 parent 4120f76 commit 3d1f719
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 @@ -226,8 +226,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 3d1f719

Please sign in to comment.