ansible-ffibk/roles/git-repos/tasks/main.yml
Tobias Hachmer 3a9edaa666 Add version to git modules in roles:
- git-fastd-peers
- git-repos
- service-tinc
2017-10-02 11:15:58 +02:00

23 lines
467 B
YAML

---
- name: install git packages
apt:
name: "{{ item }}"
state: present
with_items:
- git
- name: ensure git directory is present
file:
path: /home/admin/clones
state: directory
mode: 0755
owner: admin
group: admin
- name: clone git repositories
git:
repo: "{{ item.value.repo_url }}"
dest: "/home/admin/clones/{{ item.key }}"
version: "{{ item.value.version }}"
with_dict: "{{ common_repos }}"
become: false