forked from geerlingguy/mac-dev-playbook
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR geerlingguy#106 follow-up: More consistent docs and examples.
- Loading branch information
1 parent
0065e5a
commit 4c11406
Showing
9 changed files
with
40 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,3 @@ | |
nocows = True | ||
roles_path = ./roles:/etc/ansible/roles | ||
stdout_callback = yaml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
- name: See if Dock item {{ item }} exists. | ||
ansible.builtin.command: "dockutil --find '{{ item.name }}'" | ||
register: dockitem_exists | ||
failed_when: '"No such file or directory" in dockitem_exists.stdout' | ||
changed_when: false | ||
tags: ['dock'] | ||
|
||
- name: Ensure Dock item {{ item }} exists. | ||
ansible.builtin.command: "dockutil --add '{{ item.path }}'" | ||
when: dockitem_exists.rc >0 | ||
tags: ['dock'] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
--- | ||
- name: Install dockutil | ||
- 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 }}" | ||
|
||
- name: Remove configured Dock items. | ||
ansible.builtin.include_tasks: tasks/dock-remove.yml | ||
loop: "{{ dockitems_remove }}" | ||
|
||
- name: Ensure required dock items exist. | ||
ansible.builtin.include_tasks: tasks/adddock.yml | ||
with_items: "{{ dockitems_to_persist }}" | ||
ansible.builtin.include_tasks: tasks/dock-add.yml | ||
loop: "{{ dockitems_persist }}" | ||
|
||
- name: Ensure correct dock order | ||
- 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 }}" | ||
loop: "{{ dockitems_persist }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,3 @@ | |
- name: Run .osx dotfiles. | ||
command: "{{ osx_script }}" | ||
changed_when: false | ||
tags: ['osx'] |