Skip to content
Snippets Groups Projects
Commit 098a0c62 authored by jurgenhaas's avatar jurgenhaas
Browse files

Additional features like Drupal 8 support and customiable links

parent 3f74746e
No related branches found
No related tags found
No related merge requests found
---
# file: roles/drupal/tasks/install.d6.yml
- set_fact: dummy=yes
---
# file: roles/drupal/tasks/install.d7.yml
- set_fact: dummy=yes
---
# file: roles/drupal/tasks/install.d8.yml
- block:
#- name: "Drupalconsole run chain"
# shell: 'drupal chain --file={{ webRoot }}{{ drupal.chain }} --no-interaction'
# args:
# chdir: '{{ webRoot }}'
- name: "Drupalconsole: Remove Drupal Directory"
file:
path: '{{ drupalRoot }}'
state: 'absent'
- name: "Drupalconsole: Install Drupal"
shell: drupal site:new {{ drupalRoot }} 8.1.1 --no-interaction chdir={{ webRoot }}
when: drupal.chain is defined
- name: "Ensure extra directories"
file:
path: '{{ drupalRoot }}{{ item }}'
state: 'directory'
with_items:
- '/modules/custom'
- '/modules/constrib'
- '/themes/custom'
- '/themes/constrib'
when: drupal.version|default('d7') == 'd8'
......@@ -3,11 +3,11 @@
- name: "Ensure Repository Directory"
file:
path='{{ webRoot }}{{ drupal.src.git.target }}'
state='directory'
owner='root'
group='root'
mode='775'
path: '{{ webRoot }}{{ drupal.src.git.target }}'
state: 'directory'
owner: 'root'
group: 'root'
mode: '775'
- name: "Clone Git Repository"
git:
......@@ -28,5 +28,5 @@
when: drupal.src.git.target2 is defined
- name: "Run Script"
shell: '{{ webRoot }}{{ drupal.src.git.target }}{{ drupal.src.script }} {{ webRoot }}{{ drupal.src.git.target }} {{docRoot}}'
shell: '{{ webRoot }}{{ drupal.src.git.target }}{{ drupal.src.script }}'
when: drupal.src.script is defined and drupal.src.script
......@@ -47,6 +47,16 @@
- include: install.{{ installSource.mode|default("none") }}.yml
when: drupal_install_drupal and drupal_available is defined and drupal_available.stdout != '{{ drupalRoot }}/index.php'
- include: install.{{ drupal.version|default("d7") }}.yml
when: drupal_install_drupal and drupal_available is defined and drupal_available.stdout != '{{ drupalRoot }}/index.php'
- name: "Ensure links"
file:
src: '{{ webRoot }}{{ item.src }}'
dest: '{{ drupalRoot }}{{ item.dest }}'
state: 'link'
with_items: '{{ drupal.links|default([]) }}'
- include: users.{{ installSource.mode|default("none") }}.yml
when: drupal_install_drupal and drupal.src.name is defined
tags: 'SetPermissions'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment