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

37 lines
767 B
YAML
Raw Normal View History

2018-12-28 11:23:49 +01:00
---
# openbsd_pkg is broken since OpenBSD 7.4 with the version of Ansible we currently use
#- name: "Git is installed"
# community.general.openbsd_pkg:
# name: git
# state: present
# tags:
# - etc-git
- name: "Check if git is already installed"
ansible.builtin.command:
cmd: pkg_info -Iq inst:git
register: is_installed
ignore_errors: true
changed_when: false
tags:
- etc-git
- name: "Install git"
ansible.builtin.command:
cmd: pkg_add git
when: "'Can\\'t find inst:' in is_installed.stderr"
2018-12-28 11:23:49 +01:00
tags:
- etc-git
- name: "Install and configure utilities"
include: utils.yml
2018-12-28 11:23:49 +01:00
tags:
- etc-git
- name: "Configure repositories"
include: repositories.yml
when: etc_git_config_repositories | bool
2018-12-28 11:23:49 +01:00
tags:
- etc-git