mirror of
https://github.com/geerlingguy/mac-dev-playbook
synced 2025-02-17 21:18:32 +00:00
yamllinter
This commit is contained in:
parent
299c9b7b69
commit
82979a7b30
3 changed files with 7 additions and 7 deletions
|
@ -5,7 +5,7 @@ configure_dotfiles: true
|
||||||
configure_terminal: true
|
configure_terminal: true
|
||||||
configure_osx: true
|
configure_osx: true
|
||||||
|
|
||||||
configure_dock: True
|
configure_dock: true
|
||||||
dockitems_to_remove:
|
dockitems_to_remove:
|
||||||
- Launchpad
|
- Launchpad
|
||||||
- Safari
|
- Safari
|
||||||
|
@ -24,10 +24,10 @@ dockitems_to_remove:
|
||||||
- 'App Store'
|
- 'App Store'
|
||||||
remove_spacers: true
|
remove_spacers: true
|
||||||
dockitems_to_persist:
|
dockitems_to_persist:
|
||||||
- name: iTerm
|
- name: iTerm
|
||||||
path: "/Applications/iTerm.app/"
|
path: "/Applications/iTerm.app/"
|
||||||
- name: "Google Chrome"
|
- name: "Google Chrome"
|
||||||
path: "/Applications/Google Chrome.app/"
|
path: "/Applications/Google Chrome.app/"
|
||||||
configure_sudoers: false
|
configure_sudoers: false
|
||||||
sudoers_custom_config: ''
|
sudoers_custom_config: ''
|
||||||
# Example:
|
# Example:
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
with_items: "{{ dockitems_to_persist }}"
|
with_items: "{{ dockitems_to_persist }}"
|
||||||
|
|
||||||
- name: Ensure correct dock order
|
- name: Ensure correct dock order
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
cmd: dockutil --move '{{ item.name }}' --position '{{ item.pos }}'
|
cmd: dockutil --move '{{ item.name }}' --position '{{ item.pos }}'
|
||||||
when:
|
when:
|
||||||
- item.pos is defined
|
- item.pos is defined
|
||||||
|
|
|
@ -6,9 +6,9 @@
|
||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: '"No such file or directory" in dockitem_exists.stdout'
|
failed_when: '"No such file or directory" in dockitem_exists.stdout'
|
||||||
tags: ['dock']
|
tags: ['dock']
|
||||||
|
|
||||||
- name: Ensure unwanted dock items removed.
|
- name: Ensure unwanted dock items removed.
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
cmd: dockutil --remove '{{ item }}'
|
cmd: dockutil --remove '{{ item }}'
|
||||||
when: dockitem_exists.rc == 0
|
when: dockitem_exists.rc == 0
|
||||||
tags: ['dock']
|
tags: ['dock']
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue