Add rake tasks, provisioning, and templates
This commit is contained in:
parent
20bee0fac4
commit
cdf390f082
7 changed files with 193 additions and 11 deletions
|
@ -51,7 +51,7 @@
|
|||
dest: "{{ drupal_core_path }}/sites/default/settings.local.php"
|
||||
|
||||
- name: Check if site is already installed.
|
||||
command: "{{ drupal_composer_install_dir }}/vendor/bin/drush --root={{ drupal_core_path}}/ status bootstrap"
|
||||
command: "{{ drupal_composer_install_dir }}/vendor/bin/drush --root={{ drupal_core_path }}/ status bootstrap"
|
||||
args:
|
||||
chdir: "{{ drupal_core_path }}"
|
||||
register: drupal_site_installed
|
||||
|
@ -59,6 +59,16 @@
|
|||
changed_when: false
|
||||
become: no
|
||||
|
||||
- name: create drush.yml
|
||||
template:
|
||||
src: "drush.yml.j2"
|
||||
dest: "{{ drupal_composer_install_dir }}/drush/drush.yml"
|
||||
|
||||
- name: create local.site.yml
|
||||
template:
|
||||
src: "local.site.yml.j2"
|
||||
dest: "{{ drupal_composer_install_dir }}/drush/sites/local.site.yml"
|
||||
|
||||
- name: Install Drupal with drush.
|
||||
command: >
|
||||
{{ drupal_composer_install_dir }}/vendor/bin/drush site-install -y
|
||||
|
|
3
provisioning/box/post-tasks/templates/drush.yml.j2
Normal file
3
provisioning/box/post-tasks/templates/drush.yml.j2
Normal file
|
@ -0,0 +1,3 @@
|
|||
options:
|
||||
uri: "http://{{ vagrant_hostname }}"
|
||||
root: "{{ drupal_core_path }}"
|
7
provisioning/box/post-tasks/templates/local.site.yml.j2
Normal file
7
provisioning/box/post-tasks/templates/local.site.yml.j2
Normal file
|
@ -0,0 +1,7 @@
|
|||
dev:
|
||||
root: "{{ drupal_core_path }}"
|
||||
uri: "http://{{ vagrant_hostname }}"
|
||||
|
||||
local:
|
||||
root: "{{ drupal_core_path }}"
|
||||
uri: "http://{{ vagrant_hostname }}"
|
Loading…
Add table
Add a link
Reference in a new issue