mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add default brew
search path for non-Intel / Apple silicon hardware (#1679)
* Add default brew search path for non-Intel / Apple silicon hardware * add changelog fragment * Update 1679-homebrew_search_path.yml fix for double-ticks in yaml/rst format * missing dots and brackets
This commit is contained in:
parent
85fc920a0c
commit
2a53edd9bc
4 changed files with 14 additions and 6 deletions
8
changelogs/fragments/1679-homebrew_search_path.yml
Normal file
8
changelogs/fragments/1679-homebrew_search_path.yml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
---
|
||||||
|
bugfixes:
|
||||||
|
- homebrew - add default search path for ``brew`` on Apple silicon hardware
|
||||||
|
(https://github.com/ansible-collections/community.general/pull/1679).
|
||||||
|
- homebrew_cask - add default search path for ``brew`` on Apple silicon hardware
|
||||||
|
(https://github.com/ansible-collections/community.general/pull/1679).
|
||||||
|
- homebrew_tap - add default search path for ``brew`` on Apple silicon hardware
|
||||||
|
(https://github.com/ansible-collections/community.general/pull/1679).
|
|
@ -38,7 +38,7 @@ options:
|
||||||
- "A ':' separated list of paths to search for 'brew' executable.
|
- "A ':' separated list of paths to search for 'brew' executable.
|
||||||
Since a package (I(formula) in homebrew parlance) location is prefixed relative to the actual path of I(brew) command,
|
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."
|
providing an alternative I(brew) path enables managing different set of packages in an alternative location in the system."
|
||||||
default: '/usr/local/bin'
|
default: '/usr/local/bin:/opt/homebrew/bin'
|
||||||
type: path
|
type: path
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
|
@ -76,7 +76,7 @@ notes:
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
# Install formula foo with 'brew' in default path (C(/usr/local/bin))
|
# Install formula foo with 'brew' in default path
|
||||||
- community.general.homebrew:
|
- community.general.homebrew:
|
||||||
name: foo
|
name: foo
|
||||||
state: present
|
state: present
|
||||||
|
@ -871,7 +871,7 @@ def main():
|
||||||
elements='str',
|
elements='str',
|
||||||
),
|
),
|
||||||
path=dict(
|
path=dict(
|
||||||
default="/usr/local/bin",
|
default="/usr/local/bin:/opt/homebrew/bin",
|
||||||
required=False,
|
required=False,
|
||||||
type='path',
|
type='path',
|
||||||
),
|
),
|
||||||
|
|
|
@ -32,7 +32,7 @@ options:
|
||||||
path:
|
path:
|
||||||
description:
|
description:
|
||||||
- "':' separated list of paths to search for 'brew' executable."
|
- "':' separated list of paths to search for 'brew' executable."
|
||||||
default: '/usr/local/bin'
|
default: '/usr/local/bin:/opt/homebrew/bin'
|
||||||
type: path
|
type: path
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
|
@ -779,7 +779,7 @@ def main():
|
||||||
elements='str',
|
elements='str',
|
||||||
),
|
),
|
||||||
path=dict(
|
path=dict(
|
||||||
default="/usr/local/bin",
|
default="/usr/local/bin:/opt/homebrew/bin",
|
||||||
required=False,
|
required=False,
|
||||||
type='path',
|
type='path',
|
||||||
),
|
),
|
||||||
|
|
|
@ -218,7 +218,7 @@ def main():
|
||||||
brew_path = module.get_bin_path(
|
brew_path = module.get_bin_path(
|
||||||
'brew',
|
'brew',
|
||||||
required=True,
|
required=True,
|
||||||
opt_dirs=['/usr/local/bin']
|
opt_dirs=['/usr/local/bin', '/opt/homebrew/bin']
|
||||||
)
|
)
|
||||||
|
|
||||||
taps = module.params['name']
|
taps = module.params['name']
|
||||||
|
|
Loading…
Reference in a new issue