Skip to content

Commit

Permalink
Merge pull request #52 from whikloj/issue-779
Browse files Browse the repository at this point in the history
Carapace is a theme, treat it as such
  • Loading branch information
Natkeeran authored Jan 30, 2018
2 parents d23f819 + 0aef916 commit 60fef73
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
1 change: 0 additions & 1 deletion inventory/vagrant/group_vars/webserver/drupal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ drupal_enable_modules:
- media_entity_image
- devel
- search_api
- carapace
- islandora_image
- search_api_solr
- search_api_solr_defaults
Expand Down
13 changes: 13 additions & 0 deletions roles/internal/webserver-app/tasks/drupal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,19 @@
register: uninstall_search
changed_when: "'successfully uninstalled' in uninstall_search.stdout"

- name: Get Carapace status
command: "{{ drush_path }} pm-list --format=json"
args:
chdir: "{{ drupal_core_path }}"
register: carapace_enabled
changed_when: false

- name: Enable Carapace if not enabled
command: "{{ drush_path }} then -y carapace"
args:
chdir: "{{ drupal_core_path }}"
when: ((carapace_enabled.stdout|from_json).carapace.status|lower) != 'enabled'

- name: Test if theme is Carapace
command: "{{ drush_path }} -y config-get system.theme default"
args:
Expand Down

0 comments on commit 60fef73

Please sign in to comment.