Skip to content
Snippets Groups Projects
Commit 2017b2e7 authored by jurgenhaas's avatar jurgenhaas
Browse files

Start adding tags to be able to deploy Drupal updates

parent 657a3c2f
No related branches found
No related tags found
No related merge requests found
......@@ -26,4 +26,4 @@
- '/modules/contrib'
- '/themes/custom'
- '/themes/contrib'
when: drupal.version|default('d7') == 'd8'
tags: 'deploy'
......@@ -8,6 +8,7 @@
owner: 'root'
group: 'root'
mode: '775'
tags: 'deploy'
- name: "Clone Git Repository"
git:
......@@ -18,6 +19,7 @@
force: yes
version: '{{ drupal.src.git.branch|default(omit) }}'
become: false
tags: 'deploy'
- name: "Second Clone Git Repository"
git:
......@@ -26,7 +28,9 @@
force: yes
version: '{{ drupal.src.git.branch|default(omit) }}'
when: drupal.src.git.target2 is defined
tags: 'deploy'
- name: "Run Script"
shell: '{{ webRoot }}{{ drupal.src.git.target }}{{ drupal.src.script }}'
when: drupal.src.script is defined and drupal.src.script
tags: 'deploy'
......@@ -38,12 +38,18 @@
group='{{ apacheUser }}'
mode='g+w'
recurse=yes
tags: 'deploy'
- name: "Check Installation Requirement"
shell: ls {{ drupalRoot }}/index.php
register: drupal_available
failed_when: false
- set_fact:
drupal_available:
stdout: ''
tags: 'deploy'
- include: install.{{ installSource.mode|default("none") }}.yml
when: drupal_install_drupal and drupal_available is defined and drupal_available.stdout != '{{ drupalRoot }}/index.php'
......@@ -56,6 +62,7 @@
dest: '{{ drupalRoot }}{{ item.dest }}'
state: 'link'
with_items: '{{ drupal.links|default([]) }}'
tags: 'deploy'
- include: users.{{ installSource.mode|default("none") }}.yml
when: drupal_install_drupal and drupal.src.name is defined
......
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