ansible-roles/etc-git/tasks/main.yml

30 lines
515 B
YAML
Raw Normal View History

---
2017-07-28 03:33:34 +02:00
- name: Git is installed (Debian)
apt:
name: git
state: present
2018-03-16 14:20:25 +01:00
tags:
- etc-git
when:
- ansible_distribution == "Debian"
- not ansible_check_mode
- name: Install and configure utilities
include: utils.yml
tags:
- etc-git
- name: Is git present?
stat:
path: /usr/bin/git
register: _git
- name: Configure repositories
include: repositories.yml
tags:
- etc-git
when:
- etc_git_config_repositories | bool
- _git.stat.exists or not ansible_check_mode