diff --git a/tasks/main.yml b/tasks/main.yml index d67e882..7fd7c43 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,18 +1,2 @@ --- -- name: Install useful packages - apt: - update_cache: true - name: ['bash-completion', 'colordiff', 'curl', 'less', 'vim'] - -- name: Install Vim config - copy: - src: files/vimrc.local - dest: /etc/vim/vimrc.local - mode: 'u=rw,g=r,o=r' - owner: root - group: root - -- name: Set Vim as default editor - alternatives: - name: editor - path: /usr/bin/vim.basic +- include_tasks: usability.yml diff --git a/tasks/usability.yml b/tasks/usability.yml new file mode 100644 index 0000000..d67e882 --- /dev/null +++ b/tasks/usability.yml @@ -0,0 +1,18 @@ +--- +- name: Install useful packages + apt: + update_cache: true + name: ['bash-completion', 'colordiff', 'curl', 'less', 'vim'] + +- name: Install Vim config + copy: + src: files/vimrc.local + dest: /etc/vim/vimrc.local + mode: 'u=rw,g=r,o=r' + owner: root + group: root + +- name: Set Vim as default editor + alternatives: + name: editor + path: /usr/bin/vim.basic