main.yml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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 "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
  28. #https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
  29. - name: install postgres
  30. apt: name=postgresql state=present
  31. become: true
  32. - name: install libpq
  33. apt: name=libpq-dev state=present
  34. become: true
  35. - name: install libpqxx
  36. apt: name=libpqxx-dev state=present
  37. become: true
  38. - name: install cmake
  39. apt: name=cmake state=present
  40. become: true
  41. - name: libpqxx
  42. shell: |
  43. mkdir /tmp/libpqxx
  44. cd /tmp/libpqxx
  45. git clone https://github.com/jtv/libpqxx
  46. cd libpqxx
  47. - name: add yarn
  48. shell: |
  49. curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
  50. echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
  51. sudo apt update && sudo apt install --no-install-recommends yarn
  52. become: true
  53. - name: add nvm
  54. shell: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
  55. #- name: add vscode repo
  56. #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'
  57. #become: true
  58. #- name: install vscode
  59. #shell: sudo apt-get install -y code
  60. #become: true
  61. #- name: build tools
  62. #apt: build-essential libgl1-mesa-dev
  63. #become: true
  64. #- name: qt
  65. #apt: qt5-default
  66. #become: true
  67. #- name: download telegram
  68. #shell: |
  69. #wget -O- https://telegram.org/dl/desktop/linux | sudo tar xJ -C /opt/
  70. #- name: link telegram
  71. #shell: |
  72. #sudo ln -s /opt/Telegram/Telegram /usr/local/bin/telegram-desktop