Skip to content
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.

Commit

Permalink
temporarily fixing kcrawford/dockutil#127
Browse files Browse the repository at this point in the history
  • Loading branch information
Andriy Shagayev authored and Andriy Shagayev committed Aug 1, 2022
1 parent 769e308 commit f6ead91
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
# defaults file for ansible-macdock
# temporarily required for installing dockutil cask
macdock_become_pass: 'secure_sudo_password'

macdock_hide: no # Automatically hide/show dock?

Expand Down
10 changes: 10 additions & 0 deletions tasks/look.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
---
- name: "[macdock_look] Ensure dockutil is installed"
# temporary solution to https://github.com/kcrawford/dockutil/issues/127
# This should not be cask in the future and should not require password
community.general.homebrew_cask:
name: hpedrorodrigues/tools/dockutil
state: present
sudo_password: "{{ macdock_become_pass | default (ansible_become_pass) }}"
register: macdock_dockutils_result
until: macdock_dockutils_result is successful

- name: "[macdock_look] Get info about items to be removed"
command: "/usr/local/bin/dockutil --find '{{ item }}'"
register: macdock_items_remove
Expand Down

0 comments on commit f6ead91

Please sign in to comment.