main.yml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. - name: install neovim
  2. apt: name=neovim state=present
  3. tags: neovim
  4. become: true
  5. - name: create vim symlink to nvim
  6. file: src=/usr/bin/nvim dest=/usr/bin/vim state=link
  7. become: true
  8. - name: create vi symlink to vim
  9. file: src=/usr/bin/vim dest=/usr/bin/vi state=link
  10. become: true
  11. - name: install zsh shell
  12. apt: name=zsh state=present
  13. tags: zsh
  14. become: true
  15. - name: switch default shell to zsh
  16. shell: chsh -s /usr/bin/zsh
  17. tags: shellchange
  18. become: true
  19. - name: clone oh-my-zsh
  20. get_url:
  21. url: https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh
  22. dest: /tmp/zsh_install.sh
  23. mode: 0774
  24. - name: install oh-my-zsh
  25. shell: sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
  26. - name: neovim plug
  27. shell: sh -c "$(curl -fLo /home/logicp/.local/share/nvim/site/autoload/plug.vim --create-dirs \
  28. https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim)"
  29. - name: nodejs repo
  30. shell: sh -c 'curl -fsSL https://deb.nodesource.com/setup_15.x | sudo -E bash -'
  31. - name: nodejs install
  32. apt: name=nodejs state=present
  33. tags: nodejs
  34. become: true
  35. - name: yarn
  36. npm: name=yarn global=true
  37. become: true
  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
  47. - name: install cmake
  48. apt: name=cmake state=present
  49. become: true
  50. - name: libpqxx
  51. shell: |
  52. mkdir /tmp/libpqxx
  53. cd /tmp/libpqxx
  54. git clone https://github.com/jtv/libpqxx
  55. cd libpqxx
  56. - name: add nvm
  57. shell: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
  58. - name: add vscode repo
  59. shell: wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg && sudo install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/ && sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list'
  60. become: true
  61. - name: install vscode
  62. shell: apt-get install -y code
  63. become: true
  64. #- name: build tools
  65. # apt: build-essential libgl1-mesa-dev
  66. #become: true
  67. #- name: qt
  68. #apt: qt5-default
  69. #become: true
  70. - name: download telegram
  71. shell: |
  72. wget -O- https://telegram.org/dl/desktop/linux | sudo tar xJ -C /opt/
  73. - name: link telegram
  74. shell: |
  75. sudo ln -s /opt/Telegram/Telegram /usr/local/bin/telegram-desktop