diff --git a/roles/home-gui/files/Preferences.sublime-settings b/roles/home-gui/files/Preferences.sublime-settings new file mode 100644 index 0000000..c2b4df7 --- /dev/null +++ b/roles/home-gui/files/Preferences.sublime-settings @@ -0,0 +1,5 @@ +{ + "tab_size": 8, + "wrap_width": 78, + "rulers": [78], +} diff --git a/roles/home-gui/tasks/main.yml b/roles/home-gui/tasks/main.yml index 85b6345..3704b9b 100644 --- a/roles/home-gui/tasks/main.yml +++ b/roles/home-gui/tasks/main.yml @@ -6,3 +6,4 @@ - include: firefox.yml - include: mate.yml when: ansible_system != 'Linux' +- include: sublimetext.yml diff --git a/roles/home-gui/tasks/sublimetext.yml b/roles/home-gui/tasks/sublimetext.yml new file mode 100644 index 0000000..af7ab2e --- /dev/null +++ b/roles/home-gui/tasks/sublimetext.yml @@ -0,0 +1,10 @@ +--- +- name: Check for Sublime Text directory + stat: + path: "{{ ansible_env.HOME }}/.config/sublime-text-3/Packages/User" + register: sublime +- name: Copy Sublime Text preferences + copy: + src: Preferences.sublime-settings + dest: "{{ ansible_env.HOME }}/.config/sublime-text-3/Packages/User/Preferences.sublime-settings" + when: sublime.stat.exists