main.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. ---
  2. - name: install neovim
  3. apt: name=neovim state=present
  4. tags: neovim
  5. become: true
  6. - name: install neovim python client
  7. pip: name=neovim
  8. tags: python neovim
  9. become: true
  10. - name: create vim symlink to nvim
  11. file: src=/usr/bin/nvim dest=/usr/bin/vim state=link
  12. become: true
  13. - name: create vi symlink to vim
  14. file: src=/usr/bin/vim dest=/usr/bin/vi state=link
  15. become: true
  16. - name: install zsh shell
  17. apt: name=zsh state=present
  18. tags: zsh
  19. become: true
  20. - name: switch default shell to fish
  21. shell: chsh -s /usr/bin/zsh
  22. tags: shellchange
  23. become: true
  24. - name: clone oh-my-zsh
  25. get_url:
  26. url: https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh
  27. dest: /tmp/zsh_install.sh
  28. mode: 0774
  29. - name: install oh-my-zsh
  30. shell: /tmp/zsh_install.sh --noninteractive
  31. ignore_errors: true
  32. async: 10
  33. poll: 1
  34. - name: neovim plug
  35. shell: |
  36. curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
  37. https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  38. - name: install postgres
  39. apt: name=postgresql state=present
  40. become: true
  41. - name: install libpq
  42. apt: name=libpq-dev state=present
  43. become: true
  44. - name: install libpqxx
  45. apt: name=libpqxx-dev state=present
  46. become: true