mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-07 06:34:23 -07:00
homebrew: fix incorrect handling of aliases (#9255)
* Add failing test (See commit description) Second assert returns this: changed: [localhost] => changed=true changed_pkgs: - sqlite3 msg: 'Changed: 1, Unchanged: 1' unchanged_pkgs: - sqlite * Extract proper package_name from brew info using alisases * Add changelog fragment * Fix pep8 * Make sure sqlite is uninstalled beforehand * Use `package_result is (not) changed` syntax in assertions * Register more explicit names * Fix handling of casks
This commit is contained in:
parent
c5855d1a58
commit
9452a2c8ac
4 changed files with 83 additions and 28 deletions
|
@ -55,7 +55,7 @@
|
|||
|
||||
- assert:
|
||||
that:
|
||||
- package_result.changed
|
||||
- package_result is changed
|
||||
|
||||
- name: Again install {{ package_name }} package using homebrew
|
||||
homebrew:
|
||||
|
@ -68,7 +68,7 @@
|
|||
|
||||
- assert:
|
||||
that:
|
||||
- not package_result.changed
|
||||
- package_result is not changed
|
||||
|
||||
- name: Uninstall {{ package_name }} package using homebrew
|
||||
homebrew:
|
||||
|
@ -81,7 +81,7 @@
|
|||
|
||||
- assert:
|
||||
that:
|
||||
- package_result.changed
|
||||
- package_result is changed
|
||||
|
||||
- name: Again uninstall {{ package_name }} package using homebrew
|
||||
homebrew:
|
||||
|
@ -94,4 +94,4 @@
|
|||
|
||||
- assert:
|
||||
that:
|
||||
- not package_result.changed
|
||||
- package_result is not changed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue