项目作者: fubarhouse

项目描述 :
Dock management provided by Ansible
高级语言:
项目地址: git://github.com/fubarhouse/ansible-role-macdock.git
创建时间: 2016-10-31T09:49:50Z
项目社区:https://github.com/fubarhouse/ansible-role-macdock

开源协议:

下载


Ansible Role: Dockutil

Build Status

Install Dockutil and remove, add and and rotate items on OSX’s dock on macOS.

During the roles execution, icon cache will also be cleared however may require a restart if there are continuing problems.

Requirements

None.

Role Variables

Administration

  1. # The URL to the physical file where dockutil is available.
  2. dockutil_url: https://raw.githubusercontent.com/kcrawford/dockutil/master/scripts/dockutil
  3. # The installation path the above URL will be downloaded to.
  4. dockutil_install_path: /usr/local/bin/dockutil

Removal of dock items

Dock items to remove:

  1. dockitems_disabled:
  2. - Launchpad
  3. - Mail
  4. - Safari
  5. - Contacts
  6. - Notes
  7. - Reminders
  8. - Maps
  9. - Photos
  10. - Messages
  11. - FaceTime
  12. - iTunes
  13. - iBooks
  14. - App Store
  15. - System Preferences
  16. - Calendar
  17. - Terminal

Remove all: Preferred method

  1. dockitems_remove_all: true

Remove all: Alternative method:

  1. dockitems_disabled:
  2. - all

Adding dock items

Dock items to add, including name, path and weight/position:

  1. dockitems_enabled:
  2. - name: Google Chrome
  3. path: "/Applications/Google Chrome.app"
  4. pos: 1
  5. - name: Tower
  6. path: "/Applications/Tower.app"
  7. pos: 2
  8. - name: FirefoxDeveloperEdition
  9. path: "/Applications/FirefoxDeveloperEdition.app"
  10. pos: 3
  11. - name: Sublime Text
  12. path: "/Applications/Sublime Text.app"
  13. pos: 4
  14. - name: iTerm
  15. path: "/Applications/iTerm.app"
  16. pos: 5
  17. - name: TeamViewer
  18. path: "/Applications/TeamViewer.app"
  19. pos: 6

Dependencies

None.

Example Playbook

  1. - hosts: localhost
  2. roles:
  3. - fubarhouse.macdock

License

MIT / BSD

Author Information

This role was created in 2016 by Karl Hepworth.