mirror of
https://github.com/geerlingguy/mac-dev-playbook
synced 2024-11-21 19:33:03 +00:00
Fixes #91: Use updated requirements file format to fix lint error.
This commit is contained in:
parent
331a403f62
commit
9bd4b41a2e
5 changed files with 13 additions and 8 deletions
3
.ansible-lint
Normal file
3
.ansible-lint
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
skip_list:
|
||||
- experimental
|
3
main.yml
3
main.yml
|
@ -5,7 +5,8 @@
|
|||
- default.config.yml
|
||||
|
||||
pre_tasks:
|
||||
- include_vars: "{{ item }}"
|
||||
- name: Include playbook configuration.
|
||||
include_vars: "{{ item }}"
|
||||
with_fileglob:
|
||||
- "{{ playbook_dir }}/config.yml"
|
||||
tags: ['always']
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
---
|
||||
- name: geerlingguy.dotfiles
|
||||
- name: geerlingguy.homebrew
|
||||
- name: geerlingguy.mas
|
||||
roles:
|
||||
- name: geerlingguy.dotfiles
|
||||
- name: geerlingguy.homebrew
|
||||
- name: geerlingguy.mas
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
# TODO: Use sudo once .osx can be run via root with no user interaction.
|
||||
- name: Run .osx dotfiles.
|
||||
shell: "{{ osx_script }}"
|
||||
command: "{{ osx_script }}"
|
||||
changed_when: false
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
---
|
||||
# Custom Terminal theme.
|
||||
- name: Get current Terminal profile.
|
||||
shell: defaults read com.apple.terminal 'Default Window Settings'
|
||||
command: defaults read com.apple.terminal 'Default Window Settings'
|
||||
register: terminal_theme
|
||||
changed_when: false
|
||||
check_mode: false
|
||||
|
||||
- name: Ensure custom Terminal profile is added.
|
||||
shell: open files/terminal/JJG-Term.terminal
|
||||
command: open files/terminal/JJG-Term.terminal
|
||||
changed_when: false
|
||||
when: "'JJG-Term' not in terminal_theme.stdout"
|
||||
|
||||
# TODO: This doesn't work in Yosemite. Consider a different solution?
|
||||
- name: Ensure custom Terminal profile is set as default.
|
||||
shell: "{{ item }}"
|
||||
command: "{{ item }}"
|
||||
with_items:
|
||||
- defaults write com.apple.terminal 'Default Window Settings' -string JJG-Term
|
||||
- defaults write com.apple.terminal 'Startup Window Settings' -string JJG-Term
|
||||
|
|
Loading…
Reference in a new issue