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

Commit

Permalink
Fixes #118: Not installing site with install_site 'true' and build_ma…
Browse files Browse the repository at this point in the history
…kefile 'false'.
  • Loading branch information
geerlingguy committed Jun 8, 2015
1 parent b3d7002 commit 6f2746c
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions provisioning/tasks/install-site.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
---
- name: Install Drupal (standard profile) with drush.
- name: Check if site is already installed.
command: >
{{ drush_path }} status bootstrap
chdir={{ drupal_core_path }}
register: drupal_site_installed
failed_when: false
changed_when: false
sudo: no

- name: Install Drupal with drush.
command: >
{{ drush_path }} site-install {{ drupal_install_profile | default('standard') }} -y
--site-name="{{ drupal_site_name }}"
Expand All @@ -8,12 +17,12 @@
--db-url=mysql://{{ drupal_mysql_user }}:{{ drupal_mysql_password }}@localhost/{{ mysql_databases[0].name }}
chdir={{ drupal_core_path }}
notify: restart webserver
when: drupal_site.stat.exists == false
when: "'Successful' not in drupal_site_installed.stdout"
sudo: no

- name: Install configured modules with drush.
command: >
{{ drush_path }} pm-enable -y {{ drupal_enable_modules | join(" ") }}
chdir={{ drupal_core_path }}
when: drupal_site.stat.exists == false
when: "'Successful' not in drupal_site_installed.stdout"
sudo: no

0 comments on commit 6f2746c

Please sign in to comment.