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

ansible-inventories/zehnder#86 ansible-inventories/gentner#2276 Allow to...

ansible-inventories/zehnder#86 ansible-inventories/gentner#2276 Allow to define git hooks and git config items for deployment
parent 1f487d4a
No related branches found
No related tags found
No related merge requests found
......@@ -34,4 +34,19 @@
shell: '{{ webRoot }}{{ drupal.src.git.target }}{{ drupal.src.script }}'
when: drupal.src.script is defined and drupal.src.script
- name: "Install Hooks"
copy:
src: '{{ drupal.src.git.hooks[item] }}'
dest: '{{ drupal.src.git.repository }}/hooks/{{ item }}'
mode: '0755'
with_items: '{{ drupal.src.git.hooks|default([]) }}'
- name: "Configure Git"
git_config:
repo: '{{ webRoot }}{{ drupal.src.git.target }}'
name: '{{ item }}'
scope: 'local'
value: '{{ drupal.src.git.config[item] }}'
with_items: '{{ drupal.src.git.config|default([]) }}'
tags: 'deploy'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment