Add rake tasks, provisioning, and templates

This commit is contained in:
Chris Thompson 2019-02-20 15:55:38 -05:00
parent 20bee0fac4
commit cdf390f082
7 changed files with 193 additions and 11 deletions

View file

@ -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

View file

@ -0,0 +1,3 @@
options:
uri: "http://{{ vagrant_hostname }}"
root: "{{ drupal_core_path }}"

View file

@ -0,0 +1,7 @@
dev:
root: "{{ drupal_core_path }}"
uri: "http://{{ vagrant_hostname }}"
local:
root: "{{ drupal_core_path }}"
uri: "http://{{ vagrant_hostname }}"