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