From 6e9c3b6daefdea1d8bc3341881b72fabe1d5855d Mon Sep 17 00:00:00 2001 From: Christophe Siraut Date: Wed, 11 Apr 2018 09:38:33 +0200 Subject: [PATCH 5/5] bootstrap: clone repositories locally when git_ssh is true --- bootstrap.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bootstrap.yaml b/bootstrap.yaml index ef5a491..e71ab91 100644 --- a/bootstrap.yaml +++ b/bootstrap.yaml @@ -4,6 +4,17 @@ gather_facts: False tasks: + - name: create local source folder + local_action: command mkdir {{ src_dir }} + ignore_errors: yes + when: git_ssh + + - name: clone publik repositories + local_action: command git clone ssh://git@git.entrouvert.org/{{ item.key }}.git {{ src_dir }}/{{ item.key }} + with_dict: "{{ apps }}" + ignore_errors: yes + when: git_ssh + - raw: dpkg -s python || (apt update && apt install -y python python-simplejson python-apt) - raw: dpkg -s sudo || apt install -y sudo - raw: dpkg -s postgresql || apt install -y postgresql -- 2.11.0