mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-28 07:31:23 -07:00
[PR #9803/c43289b8 backport][stable-10] homebrew: Do not crash when package names include tap prefix. (#9834)
homebrew: Do not crash when package names include tap prefix. (#9803)
* homebrew: Do not crash when package names include tap prefix.
Fixes #9777
* homebrew: PR #9803 minor update: removed trailing whitespace
* Update changelogs/fragments/9777-homebrew-fix-crash-when-packages-include-tap.yml
Co-authored-by: Felix Fontein <felix@fontein.de>
* Apply suggestions from code review
Co-authored-by: Thibaut Decombe <68703331+UnknownPlatypus@users.noreply.github.com>
* Update plugins/modules/homebrew.py
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
---------
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Thibaut Decombe <68703331+UnknownPlatypus@users.noreply.github.com>
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
(cherry picked from commit c43289b8f1
)
Co-authored-by: brad2014 <brad2014@users.noreply.github.com>
This commit is contained in:
parent
9ebf72d560
commit
cd0ca389ed
3 changed files with 36 additions and 5 deletions
|
@ -95,3 +95,12 @@
|
|||
- assert:
|
||||
that:
|
||||
- package_result is not changed
|
||||
|
||||
# This crashed on 4867eb4 - Ref: issue #9777
|
||||
- name: Install cask using homelab/cask syntax
|
||||
homebrew:
|
||||
package: "homebrew/cask/{{ package_name }}"
|
||||
state: present
|
||||
update_homebrew: false
|
||||
become: true
|
||||
become_user: "{{ brew_stat.stat.pw_name }}"
|
Loading…
Add table
Add a link
Reference in a new issue