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

Allow branch definition for extrarepos as well

parent de316701
No related branches found
No related tags found
No related merge requests found
......@@ -6,10 +6,10 @@
- name: "Clone Git Repository"
git:
accept_hostkey: yes
repo: '{{ drupal.src.git.extrarepos[item] }}'
repo: '{{ drupal.src.git.extrarepos[item]["repository"] }}'
dest: '{{ webRoot }}/{{ item }}'
force: yes
version: '{{ drupal.src.git.branch|default(omit) }}'
version: '{{ drupal.src.git.extrarepos[item]["branch"]|default(omit) }}'
become: false
with_items: '{{ drupal.src.git.extrarepos|default([]) }}'
when: collect_config_key == item
......
......@@ -25,10 +25,10 @@
- name: "Clone Git Extra Repositories"
git:
accept_hostkey: yes
repo: '{{ drupal.src.git.extrarepos[item] }}'
repo: '{{ drupal.src.git.extrarepos[item]["repository"] }}'
dest: '{{ webRoot }}/{{ item }}'
force: yes
version: '{{ drupal.src.git.branch|default(omit) }}'
version: '{{ drupal.src.git.extrarepos[item]["branch"]|default(omit) }}'
become: false
with_items: '{{ drupal.src.git.extrarepos|default([]) }}'
......
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