--- # 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" tags: - etc-git - name: "Install and configure utilities" include: utils.yml tags: - etc-git - name: "Configure repositories" include: repositories.yml when: etc_git_config_repositories | bool tags: - etc-git