From c8fc116b208448409c72510b6a68af354b3f9659 Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Thu, 22 Oct 2015 06:40:33 +0200 Subject: [PATCH] Add tasks for other modules. --- meta/main.yml | 147 ++++++------------------------------------------- tasks/main.yml | 140 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 158 insertions(+), 129 deletions(-) diff --git a/meta/main.yml b/meta/main.yml index 9be6a7b..3194709 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -1,134 +1,23 @@ --- galaxy_info: - author: your name - description: - company: your company (optional) - # Some suggested licenses: - # - BSD (default) - # - MIT - # - GPLv2 - # - GPLv3 - # - Apache - # - CC-BY - license: license (GPLv2, CC-BY, etc) - min_ansible_version: 1.2 - # - # Below are all platforms currently available. Just uncomment - # the ones that apply to your role. If you don't see your - # platform on this list, let us know and we'll get it added! - # - #platforms: - #- name: EL - # versions: - # - all - # - 5 - # - 6 - # - 7 - #- name: GenericUNIX - # versions: - # - all - # - any - #- name: Fedora - # versions: - # - all - # - 16 - # - 17 - # - 18 - # - 19 - # - 20 - # - 21 - # - 22 - #- name: Windows - # versions: - # - all - # - 2012R2 - #- name: SmartOS - # versions: - # - all - # - any - #- name: opensuse - # versions: - # - all - # - 12.1 - # - 12.2 - # - 12.3 - # - 13.1 - # - 13.2 - #- name: Amazon - # versions: - # - all - # - 2013.03 - # - 2013.09 - #- name: GenericBSD - # versions: - # - all - # - any - #- name: FreeBSD - # versions: - # - all - # - 8.0 - # - 8.1 - # - 8.2 - # - 8.3 - # - 8.4 - # - 9.0 - # - 9.1 - # - 9.1 - # - 9.2 - #- name: Ubuntu - # versions: - # - all - # - lucid - # - maverick - # - natty - # - oneiric - # - precise - # - quantal - # - raring - # - saucy - # - trusty - # - utopic - # - vivid - #- name: SLES - # versions: - # - all - # - 10SP3 - # - 10SP4 - # - 11 - # - 11SP1 - # - 11SP2 - # - 11SP3 - #- name: GenericLinux - # versions: - # - all - # - any - #- name: Debian - # versions: - # - all - # - etch - # - jessie - # - lenny - # - squeeze - # - wheezy - # - # Below are all categories currently available. Just as with - # the platforms above, uncomment those that apply to your role. - # - #categories: - #- cloud - #- cloud:ec2 - #- cloud:gce - #- cloud:rax - #- clustering - #- database - #- database:nosql - #- database:sql - #- development - #- monitoring - #- networking - #- packaging - #- system - #- web + author: Glenn Y. Rolland + description: Install Pathogen, Solarized, Nerdtree and AutoComplPop for Vim. Copy my .vimrc + company: netcat_ + license: MIT + min_ansible_version: 1.9 +platforms: + - name: Debian + versions: + - all + - name: Ubuntu + versions: + - all + - names: Mac OS + versions: + - X +categories: + - development + - system dependencies: [] # List your role dependencies here, one per line. Only # dependencies available via galaxy should be listed here. diff --git a/tasks/main.yml b/tasks/main.yml index 2bf71ed..5e4e7c3 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,2 +1,142 @@ --- # tasks file for glenux.vim +# Inspiration from https://github.com/ChengLong/ansible-vim/blob/master/tasks/main.yml +- name: Make directories for Pathogen + command: mkdir -p ~/.vim/autoload ~/.vim/bundle + become: true + become_user: "{{vim_user}}" + +- name: Install Pathogen + command: > + curl -LSso ~/.vim/autoload/pathogen.vim https://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim + become: true + become_user: "{{vim_user}}" + +- name: Install Solarized + git: > + repo=git://github.com/altercation/vim-colors-solarized.git + dest=~/.vim/bundle/vim-colors-solarized + update=yes + accept_hostkey=yes + become: true + become_user: "{{vim_user}}" + +- name: Install Nerdtree + git: + repo=https://github.com/scrooloose/nerdtree.git + dest=~/.vim/bundle/nerdtree + update=yes + accept_hostkey=yes + become: true + become_user: "{{vim_user}}" + + +- name: Install AutoComplPop + git: + repo=https://github.com/vim-scripts/AutoComplPop.git + dest=~/.vim/bundle/AutoComplPop + update=yes + accept_hostkey=yes + become: true + become_user: "{{vim_user}}" + +- name: Install vim-fugitive + git: + repo=https://github.com/tpope/vim-fugitive.git + dest=~/.vim/bundle/vim-fugitive + update=yes + accept_hostkey=yes + become: true + become_user: "{{vim_user}}" + +#- name: Install CtrlP +# git: +# repo=https://github.com/kien/ctrlp.vim.git +# dest=~/.vim/bundle/ctrlp.vim +# update=yes +# accept_hostkey=yes +# become: true +# become_user: "{{vim_user}}" + +- name: Install rainbow_parentheses + git: + repo=https://github.com/kien/rainbow_parentheses.vim.git + dest=~/.vim/bundle/rainbow_parentheses + update=yes + accept_hostkey=yes + become: true + become_user: "{{vim_user}}" + +- name: Install syntastic/ + git: + repo=https://github.com/scrooloose/syntastic.git + dest=~/.vim/bundle/syntastic + update=yes + accept_hostkey=yes + become: true + become_user: "{{vim_user}}" + + +- name: Install tabular + git: + repo=https://github.com/godlygeek/tabular.git + dest=~/.vim/bundle/tabular + update=yes + accept_hostkey=yes + become: true + become_user: "{{vim_user}}" + +- name: Install vim-bundler + git: + repo=https://github.com/tpope/vim-bundler.git + dest=~/.vim/bundle/vim-bundler + update=yes + accept_hostkey=yes + become: true + become_user: "{{vim_user}}" + +- name: Install vim-javascript + git: + repo=https://github.com/pangloss/vim-javascript.git + dest=~/.vim/bundle/vim-javascript + update=yes + accept_hostkey=yes + become: true + become_user: "{{vim_user}}" + +- name: Install vim-puppet + git: + repo=https://github.com/rodjek/vim-puppet.git + dest=~/.vim/bundle/vim-puppet + update=yes + accept_hostkey=yes + become: true + become_user: "{{vim_user}}" + +- name: Install vim-rails + git: + repo=https://github.com/tpope/vim-rails.git + dest=~/.vim/bundle/vim-rails + update=yes + accept_hostkey=yes + become: true + become_user: "{{vim_user}}" + +- name: Install vim-sensible + git: + repo=https://github.com/tpope/vim-sensible.git + dest=~/.vim/bundle/vim-sensible + update=yes + accept_hostkey=yes + become: true + become_user: "{{vim_user}}" + +- name: Install YouCompleteMe + git: + repo=https://github.com/Valloric/YouCompleteMe.git + dest=~/.vim/bundle/YouCompleteMe + update=yes + accept_hostkey=yes + become: true + become_user: "{{vim_user}}" +