Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

homebrew: add Linux brew path to defaults #5241

Merged
merged 5 commits into from
Sep 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions changelogs/fragments/5241-homebrew-add-linux-path.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- homebrew, homebrew_tap - added Homebrew on Linux path to defaults (https://github.com/ansible-collections/community.general/pull/5241).
russoz marked this conversation as resolved.
Show resolved Hide resolved
4 changes: 2 additions & 2 deletions plugins/modules/packaging/os/homebrew.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
- "A C(:) separated list of paths to search for C(brew) executable.
Since a package (I(formula) in homebrew parlance) location is prefixed relative to the actual path of I(brew) command,
providing an alternative I(brew) path enables managing different set of packages in an alternative location in the system."
default: '/usr/local/bin:/opt/homebrew/bin'
default: '/usr/local/bin:/opt/homebrew/bin:/home/linuxbrew/.linuxbrew/bin'
dawidd6 marked this conversation as resolved.
Show resolved Hide resolved
type: path
state:
description:
Expand Down Expand Up @@ -876,7 +876,7 @@ def main():
elements='str',
),
path=dict(
default="/usr/local/bin:/opt/homebrew/bin",
default="/usr/local/bin:/opt/homebrew/bin:/home/linuxbrew/.linuxbrew/bin",
required=False,
type='path',
russoz marked this conversation as resolved.
Show resolved Hide resolved
),
Expand Down
6 changes: 3 additions & 3 deletions plugins/modules/packaging/os/homebrew_tap.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
type: str
path:
description:
- "A ':' separated list of paths to search for C(brew) executable."
default: '/usr/local/bin:/opt/homebrew/bin'
- "A C(:) separated list of paths to search for C(brew) executable."
default: '/usr/local/bin:/opt/homebrew/bin:/home/linuxbrew/.linuxbrew/bin'
type: path
version_added: '2.1.0'
requirements: [ homebrew ]
Expand Down Expand Up @@ -219,7 +219,7 @@ def main():
url=dict(default=None, required=False),
state=dict(default='present', choices=['present', 'absent']),
path=dict(
default="/usr/local/bin:/opt/homebrew/bin",
default="/usr/local/bin:/opt/homebrew/bin:/home/linuxbrew/.linuxbrew/bin",
required=False,
type='path',
),
Expand Down