From a691f354946210da67afd07f17eec10200fcbea9 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Sun, 20 Jan 2019 10:46:00 +0000 Subject: [PATCH] Move iTerm2 config into Ansible templates --- .../files/iterm2}/com.googlecode.iterm2.plist | 0 .../roles/mac_desktop/files/iterm2}/hybrid.itermcolors | 0 .../mac_desktop/files/iterm2}/shell_integration.bash | 0 .ansible/roles/mac_desktop/tasks/prefs.yaml | 10 ++++++++++ 4 files changed, 10 insertions(+) rename {.iterm2 => .ansible/roles/mac_desktop/files/iterm2}/com.googlecode.iterm2.plist (100%) rename {.iterm2 => .ansible/roles/mac_desktop/files/iterm2}/hybrid.itermcolors (100%) rename {.iterm2 => .ansible/roles/mac_desktop/files/iterm2}/shell_integration.bash (100%) diff --git a/.iterm2/com.googlecode.iterm2.plist b/.ansible/roles/mac_desktop/files/iterm2/com.googlecode.iterm2.plist similarity index 100% rename from .iterm2/com.googlecode.iterm2.plist rename to .ansible/roles/mac_desktop/files/iterm2/com.googlecode.iterm2.plist diff --git a/.iterm2/hybrid.itermcolors b/.ansible/roles/mac_desktop/files/iterm2/hybrid.itermcolors similarity index 100% rename from .iterm2/hybrid.itermcolors rename to .ansible/roles/mac_desktop/files/iterm2/hybrid.itermcolors diff --git a/.iterm2/shell_integration.bash b/.ansible/roles/mac_desktop/files/iterm2/shell_integration.bash similarity index 100% rename from .iterm2/shell_integration.bash rename to .ansible/roles/mac_desktop/files/iterm2/shell_integration.bash diff --git a/.ansible/roles/mac_desktop/tasks/prefs.yaml b/.ansible/roles/mac_desktop/tasks/prefs.yaml index 658f4eb..25b44ba 100644 --- a/.ansible/roles/mac_desktop/tasks/prefs.yaml +++ b/.ansible/roles/mac_desktop/tasks/prefs.yaml @@ -1,3 +1,13 @@ +- name: 'iTerm2: Add configuration' + tags: + - config + - iterm2 + template: + src: "{{ item }}" + dest: '~/.iterm2' + mode: '0600' + loop: "{{ query('fileglob', 'iterm2/*') }}" + - name: 'Firefox: Set base path' tags: - config