community.general.homebrew_tap (8.5.0) — module

Tap a Homebrew repository

Authors: Indrajit Raychaudhuri (@indrajitr), Daniel Jaouen (@danieljaouen)

Install collection

Install with ansible-galaxy collection install community.general:==8.5.0


Add to requirements.yml

  collections:
    - name: community.general
      version: 8.5.0

Description

Tap external Homebrew repositories.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Tap a Homebrew repository, state present
  community.general.homebrew_tap:
    name: homebrew/dupes
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Tap a Homebrew repository, state absent
  community.general.homebrew_tap:
    name: homebrew/dupes
    state: absent
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Tap a Homebrew repository, state present
  community.general.homebrew_tap:
    name: homebrew/dupes,homebrew/science
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Tap a Homebrew repository using url, state present
  community.general.homebrew_tap:
    name: telemachus/brew
    url: 'https://bitbucket.org/telemachus/brew'

Inputs

    
url:
    description:
    - The optional git URL of the repository to tap. The URL is not assumed to be on GitHub,
      and the protocol doesn't have to be HTTP. Any location and protocol that git can
      handle is fine.
    - O(name) option may not be a list of multiple taps (but a single tap instead) when
      this option is provided.
    required: false
    type: str

name:
    aliases:
    - tap
    description:
    - The GitHub user/organization repository to tap.
    elements: str
    required: true
    type: list

path:
    default: /usr/local/bin:/opt/homebrew/bin:/home/linuxbrew/.linuxbrew/bin
    description:
    - A V(:) separated list of paths to search for C(brew) executable.
    type: path
    version_added: 2.1.0
    version_added_collection: community.general

state:
    choices:
    - present
    - absent
    default: present
    description:
    - state of the repository.
    required: false
    type: str