2018-12-28 11:23:49 +01:00
|
|
|
---
|
|
|
|
|
2024-03-13 15:16:50 +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
|
|
|
|
|
2022-06-23 16:17:42 +02:00
|
|
|
- name: "Install and configure utilities"
|
2022-05-03 15:55:45 +02:00
|
|
|
include: utils.yml
|
2018-12-28 11:23:49 +01:00
|
|
|
tags:
|
|
|
|
- etc-git
|
|
|
|
|
2022-06-23 16:17:42 +02:00
|
|
|
- name: "Configure repositories"
|
2022-05-03 15:55:45 +02:00
|
|
|
include: repositories.yml
|
2022-06-23 18:35:39 +02:00
|
|
|
when: etc_git_config_repositories | bool
|
2018-12-28 11:23:49 +01:00
|
|
|
tags:
|
|
|
|
- etc-git
|