mac-dev-playbook/tasks/dock.yml

23 lines
594 B
YAML
Raw Normal View History

2021-04-07 19:18:39 +02:00
---
2021-04-12 17:37:55 +02:00
- name: Install dockutil
homebrew:
name: dockutil
state: present
notify:
- Clear homebrew cache
- name: remove dockitems
ansible.builtin.include_tasks: tasks/remdock.yml
loop: "{{ dockitems_to_remove }}"
2021-04-07 19:18:39 +02:00
2021-04-12 17:37:55 +02:00
- name: Ensure required dock items exist.
ansible.builtin.include_tasks: tasks/adddock.yml
with_items: "{{ dockitems_to_persist }}"
2021-04-07 19:18:39 +02:00
2021-04-12 17:37:55 +02:00
- name: Ensure correct dock order
ansible.builtin.command:
cmd: dockutil --move '{{ item.name }}' --position '{{ item.pos }}'
when:
- item.pos is defined
- item.pos length >0
loop: "{{ dockitems_to_persist }}"