main.yml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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. #
  21. #- name: switch default shell to fish
  22. # shell: chsh -s /usr/bin/zsh
  23. # tags: shellchange
  24. # become: true
  25. - name: clone oh-my-zsh
  26. get_url:
  27. url: https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh
  28. dest: /tmp/zsh_install.sh
  29. mode: 0774
  30. - name: install oh-my-zsh
  31. shell: /tmp/zsh_install.sh --noninteractive
  32. ignore_errors: true
  33. async: 10
  34. poll: 1
  35. - name: neovim plug
  36. shell: |
  37. curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
  38. https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  39. - name: install nodejs
  40. pacman: name=nodejs state=present
  41. become: true
  42. - name: install npm
  43. pacman: name=npm state=present
  44. become: true
  45. - name: install ctags
  46. pacman: name=ctags state=present
  47. become: true
  48. - name: install locate
  49. pacman: name=mlocate state=present
  50. become: true
  51. - name: install yarn
  52. shell: curl -o- -L https://yarnpkg.com/install.sh | bash
  53. tags: yarn
  54. - name: install postgres
  55. pacman: name=postgresql state=present
  56. tags: postgres
  57. become: true
  58. - name: install postgres-libs
  59. pacman: name=postgresql-libs state=present
  60. tags: postgres-libs libpq
  61. become: true
  62. - name: install cmake
  63. pacman: name=cmake state=present
  64. tags: cmake
  65. become: true
  66. - name: install zeromq
  67. pacman: name=zeromq state=present
  68. tags: zeromq
  69. become: true
  70. - name: install libpqxx
  71. pacman: name=libpqxx
  72. become: true
  73. - name: nvm
  74. shell: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
  75. - name: telegram dl
  76. shell: |
  77. wget -O- https://telegram.org/dl/desktop/linux | sudo tar xJ -C /opt/
  78. - name: link telegram
  79. shell: |
  80. sudo ln -s /opt/Telegram/Telegram /usr/local/bin/telegram-desktop
  81. - name: Download VSCode
  82. shell: curl -L https://code.visualstudio.com/sha/download\?build\=stable\&os\=linux-x64 -o /home/logicp/Downloads/vscode.tar.gz
  83. tags: VSCode
  84. - name: Uncompress VSCode
  85. shell: |
  86. cd /home/logicp/Downloads && tar xvf vscode.tar.gz
  87. - name: Install VSCode
  88. shell: |
  89. mv /home/logicp/Downloads/VSCode-linux-x64 /opt
  90. become: true
  91. - name: Create data dir
  92. shell: mkdir /data && chown -R logicp:logicp /data
  93. become: true
  94. - name: Clone KServer
  95. ignore_errors: true
  96. ansible.builtin.git:
  97. repo: git@github.com:stronglogicsolutions/kserver
  98. dest: /data/kserver
  99. - name: Clone KY_GUI
  100. ignore_errors: true
  101. ansible.builtin.git:
  102. repo: git@github.com:stronglogicsolutions/ky_gui
  103. dest: /data/kygui
  104. - name: Clone KBOT
  105. ignore_errors: true
  106. ansible.builtin.git:
  107. repo: git@github.com:stronglogicsolutions/kbot
  108. dest: /data/kbot
  109. - name: Clone Keleqram
  110. ignore_errors: true
  111. ansible.builtin.git:
  112. repo: git@github.com:stronglogicsolutions/keleqram
  113. dest: /data/keleqram
  114. - name: Clone KGRAM
  115. ignore_errors: true
  116. ansible.builtin.git:
  117. repo: git@github.com:stronglogicsolutions/kgram
  118. dest: /data/kgram
  119. - name: Clone KStodon
  120. ignore_errors: true
  121. ansible.builtin.git:
  122. repo: git@github.com:stronglogicsolutions/kstodon
  123. dest: /data/kstodon
  124. - name: Clone KScord
  125. ignore_errors: true
  126. ansible.builtin.git:
  127. repo: git@github.com:stronglogicsolutions/kscord
  128. dest: /data/kscord
  129. - name: Clone KTube
  130. ignore_errors: true
  131. ansible.builtin.git:
  132. repo: git@github.com:stronglogicsolutions/ktube
  133. dest: /data/ktube
  134. - name: Clone KNeural
  135. ignore_errors: true
  136. ansible.builtin.git:
  137. repo: git@github.com:stronglogicsolutions/kneural
  138. dest: /data/kneural
  139. - name: Clone Katrix
  140. ignore_errors: true
  141. ansible.builtin.git:
  142. repo: git@github.com:stronglogicsolutions/katrix
  143. dest: /data/katrix
  144. - name: Clone Kwitter
  145. ignore_errors: true
  146. ansible.builtin.git:
  147. repo: git@github.com:stronglogicsolutions/kwitter
  148. dest: /data/kwitter