diff --git a/tasks/main.yml b/tasks/main.yml index 306429a..9ada45d 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -4,7 +4,7 @@ - name: include repositories (with updates) include_tasks: - file: repo.yml + file: repo.yml apply: tags: - update @@ -13,6 +13,6 @@ - name: include repositories (without updates) include_tasks: - file: repo.yml + file: repo.yml when: not item.value.update|d(true) with_dict: "{{ git }}" diff --git a/tasks/repo.yml b/tasks/repo.yml index 46033ab..db024db 100644 --- a/tasks/repo.yml +++ b/tasks/repo.yml @@ -2,8 +2,8 @@ repo: "{{ (item.value)|combine(item.value, {'name': item.key}) }}" - name: write deploy key - copy: - content: "{{ repo.deploykey }}" + copy: + content: "{{ repo.deploykey }}" dest: "{{ repo.deploykeypath }}" mode: 0600 owner: "{{ repo.user }}" @@ -17,12 +17,12 @@ - name: clone repositories become_user: "{{ repo.user|d('root') }}" become: true - git: + git: depth: "{{ repo.depth|d(omit) }}" dest: "{{ repo.path }}" repo: "{{ repo.url }}" - accept_hostkey: true - update: true + accept_hostkey: true + update: true key_file: "{{ repo.deploykeypath|d(None) }}" version: "{{ repo.version|d('master') }}" force: "{{ repo.force|d(false) }}"