ansible-role-git/tasks/main.yml
2019-04-09 18:23:19 +02:00

20 lines
387 B
YAML

- name: install git
apt:
pkg: git
- debug: var=git
- name: include repositories (with updates)
include_tasks:
file: repo.yml
apply:
tags:
- update
when: item.value.update|d(true)
with_dict: "{{ git }}"
- name: include repositories (without updates)
include_tasks:
file: repo.yml
when: not item.value.update|d(true)
with_dict: "{{ git }}"