Commit 274b3657 authored by Jakob Levisen Kvistgaard's avatar Jakob Levisen Kvistgaard
Browse files

added branch option

parent 0dcd3a25
......@@ -10,7 +10,8 @@
- name: Get updates from git
ansible.builtin.git:
repo: '{{ gitlab_repos_host }}/{{ item }}.git'
dest: '{{ ansible_facts.user_dir }}/{{ item }}'
repo: '{{ gitlab_repos_host }}/{{ item.name }}.git'
dest: '{{ ansible_facts.user_dir }}/{{ item.name }}'
version: "{{ item.branch | default('HEAD') }}"
with_items: '{{ robot_repos }}'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment