main.yml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. ---
  2. - name: install neovim
  3. pacman: 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. pacman: 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: google chrome
  35. #shell: |
  36. #cd ~/Downloads && git clone https://aur.archlinux.org/google-chrome.git && cd google-chrome && makepkg -s
  37. - name: install google chrome
  38. shell: cd /home/logicp/Downloads/google-chrome && pacman -U --noconfirm google-chrome*.pkg.tar.xz
  39. become: true
  40. - name: neovim plug
  41. shell: |
  42. curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
  43. https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  44. - name: install nodejs
  45. pacman: name=nodejs state=present
  46. become: true
  47. - name: install npm
  48. pacman: name=npm state=present
  49. become: true
  50. - name: install virtualbox
  51. pacman: name=virtualbox state=present
  52. become: true
  53. - name: install vagrant
  54. pacman: name=vagrant state=present
  55. become: true
  56. - name: install ruby
  57. pacman: name=ruby state=present
  58. become: true
  59. - name: install ctags
  60. pacman: name=ctags state=present
  61. become: true
  62. - name: install locate
  63. pacman: name=mlocate state=present
  64. become: true
  65. - name: install yarn
  66. shell: curl -o- -L https://yarnpkg.com/install.sh | bash
  67. tags: yarn
  68. - name: Download VSCode
  69. shell: wget -o /home/logicp/Downloads/vscode.tar.gz https://go.microsoft.com/fwlink/?LinkID=620884
  70. tags: VSCode
  71. - name: Uncompress VSCode
  72. shell: |
  73. cd /home/logicp/Downloads && tar zxvf vscode.tar.gz
  74. - name: Install VSCode
  75. shell: |
  76. mv /home/logicp/Downloads/VSCode-linux-x64 /opt
  77. become: true
  78. - name: Download IntelliJ Community
  79. get_url:
  80. url: http://
  81. dest: /home/logicp/Downloads/intellij-ce.tar.gz
  82. - name: Unpack and Install IntelliJ
  83. shell: |
  84. tar zxvf /home/logicp/Downloads/intellij-ce.tar.gz || mv /home/logicp/Download/idea-IC* /opt/idea-IC
  85. become: true
  86. - name: Clone and install slack
  87. shell: |
  88. cd /home/logicp/Downloads && git clone https://aur.archlinux.org/slack-desktop.git && \
  89. cd slack-desktop && makepkg -s && pacman -U slack-desktop-*x86_64.pkg.tar.xz