main.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. ---
  2. # - name: install neovim
  3. # pip: name=neovim state=present
  4. # tags: neovim
  5. # # become: true
  6. - name: install nginx
  7. pacman: name=nginx state=present
  8. tags: nginx
  9. become: true
  10. - name: install zsh
  11. pacman: name=zsh state=present
  12. tags: zsh
  13. become: true
  14. - name: switch default shell to zsh
  15. shell: chsh -s /usr/bin/zsh
  16. tags: shellchange
  17. become: true
  18. - name: clone oh-my-zsh
  19. get_url:
  20. url: https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh
  21. dest: /tmp/zsh_install.sh
  22. mode: 0774
  23. - name: install oh-my-zsh
  24. shell: /tmp/zsh_install.sh --noninteractive
  25. ignore_errors: true
  26. async: 10
  27. poll: 1
  28. - name: install neovim python client
  29. pip: name=neovim
  30. tags: python neovim
  31. become: true
  32. - name: create vim symlink to nvim
  33. file: src=/usr/bin/nvim dest=/usr/bin/vim state=link
  34. become: true
  35. - name: create vi symlink to vim
  36. file: src=/usr/bin/vim dest=/usr/bin/vi state=link
  37. become: true
  38. - name: install nodejs
  39. pacman: name=nodejs state=present
  40. tags: nodejs
  41. become: true
  42. - name: install npm
  43. pacman: name=npm state=present
  44. tags: npm
  45. become: true
  46. - name: install yarn
  47. community.general.npm: name=yarn global=yes
  48. tags: yarn
  49. - name: install postgres
  50. pacman: name=postgresql state=present
  51. tags: postgres
  52. become: true
  53. - name: install postgres-libs
  54. pacman: name=postgres-libs state=present
  55. tags: postgres-libs libpq
  56. become: true
  57. - name: install cmake
  58. pacman: name=cmake state=present
  59. tags: cmake
  60. become: true
  61. - name: install zeromq
  62. pacman: name=zeromq state=present
  63. tags: zeromq
  64. become: true