Jelajahi Sumber

this seems to be a lot better for arch

logicp 1 tahun lalu
induk
melakukan
233ac703cf
1 mengubah file dengan 116 tambahan dan 56 penghapusan
  1. 116 56
      arch/roles/common/tasks/main.yml

+ 116 - 56
arch/roles/common/tasks/main.yml

@@ -4,28 +4,28 @@
   tags: neovim
   become: true
 
-- name: install neovim python client
-  pip: name=neovim
-  tags: python neovim
-  become: true
+    #- name: install neovim python client
+    #  pip: name=neovim
+    #  tags: python neovim
+    #  become: true
 
-- name: create vim symlink to nvim
-  file: src=/usr/bin/nvim dest=/usr/bin/vim state=link
-  become: true
+    #- name: create vim symlink to nvim
+    #  file: src=/usr/bin/nvim dest=/usr/bin/vim state=link
+    #  become: true
 
 - name: create vi symlink to vim
   file: src=/usr/bin/vim dest=/usr/bin/vi state=link
   become: true
 
-- name: install zsh shell
-  pacman: name=zsh state=present
-  tags: zsh
-  become: true
-
-- name: switch default shell to fish
-  shell: chsh -s /usr/bin/zsh
-  tags: shellchange
-  become: true
+    #- name: install zsh shell
+    #  pacman: name=zsh state=present
+    #  tags: zsh
+    #  become: true
+    #
+    #- name: switch default shell to fish
+    #  shell: chsh -s /usr/bin/zsh
+    #  tags: shellchange
+    #  become: true
 
 - name: clone oh-my-zsh
   get_url:
@@ -39,14 +39,6 @@
   async: 10
   poll: 1
 
-#- name: google chrome
-  #shell: |
-    #cd ~/Downloads && git clone https://aur.archlinux.org/google-chrome.git && cd google-chrome && makepkg -s
- 
-- name: install google chrome
-  shell: cd /home/logicp/Downloads/google-chrome && pacman -U --noconfirm  google-chrome*.pkg.tar.xz
-  become: true
-  
 - name: neovim plug
   shell: |
     curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
@@ -60,18 +52,6 @@
   pacman: name=npm state=present
   become: true
 
-- name: install virtualbox
-  pacman: name=virtualbox state=present
-  become: true
-
-- name: install vagrant
-  pacman: name=vagrant state=present
-  become: true
-
-- name: install ruby
-  pacman: name=ruby state=present
-  become: true
-
 - name: install ctags
   pacman: name=ctags state=present
   become: true
@@ -84,40 +64,120 @@
   shell: curl -o- -L https://yarnpkg.com/install.sh | bash
   tags: yarn
 
+- name: install postgres
+  pacman: name=postgresql state=present
+  tags: postgres
+  become: true
+
+- name: install postgres-libs
+  pacman: name=postgresql-libs state=present
+  tags: postgres-libs libpq
+  become: true
+
+- name: install cmake
+  pacman: name=cmake state=present
+  tags: cmake
+  become: true
+
+- name: install zeromq
+  pacman: name=zeromq state=present
+  tags: zeromq
+  become: true
+
+- name: install libpqxx
+  pacman: name=libpqxx
+  become: true
+
+- name: nvm
+  shell: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
+
+- name: telegram dl
+  shell: |
+    wget -O- https://telegram.org/dl/desktop/linux | sudo tar xJ -C /opt/
+
+- name: link telegram
+  shell: |
+    sudo ln -s /opt/Telegram/Telegram /usr/local/bin/telegram-desktop
+
 - name: Download VSCode
-  shell: wget -o /home/logicp/Downloads/vscode.tar.gz https://go.microsoft.com/fwlink/?LinkID=620884
+  shell: curl -L https://code.visualstudio.com/sha/download\?build\=stable\&os\=linux-x64 -o /home/logicp/Downloads/vscode.tar.gz
   tags: VSCode
 
 - name: Uncompress VSCode
   shell: |
-      cd /home/logicp/Downloads && tar zxvf vscode.tar.gz
+      cd /home/logicp/Downloads && tar xvf vscode.tar.gz
 
 - name: Install VSCode
   shell: |
       mv /home/logicp/Downloads/VSCode-linux-x64 /opt
   become: true
 
-- name: Download IntelliJ Community
-  get_url:
-      url: http://
-      dest: /home/logicp/Downloads/intellij-ce.tar.gz
-
-- name: Unpack and Install IntelliJ
-  shell: |
-      tar zxvf /home/logicp/Downloads/intellij-ce.tar.gz || mv /home/logicp/Download/idea-IC* /opt/idea-IC
+- name: Create data dir
+  shell: mkdir /data && chown -R logicp:logicp /data
   become: true
 
-- name: Clone and install slack
-  shell: |
-	cd /home/logicp/Downloads && git clone https://aur.archlinux.org/slack-desktop.git && \
-        cd slack-desktop && makepkg -s && pacman -U slack-desktop-*x86_64.pkg.tar.xz
+- name: Clone KServer
+  ignore_errors: true
+  ansible.builtin.git:
+    repo: git@github.com:stronglogicsolutions/kserver
+    dest: /data/kserver
 
-- name: Download Telegram
-  get_url:
-      url: https://github.com/telegramdesktop/tdesktop/releases/download/v1.7.8/tsetup.1.7.8.beta.tar.xz
-      dest: /home/logicp/Downloads/tsetup.xz
+- name: Clone KY_GUI
+  ignore_errors: true
+  ansible.builtin.git:
+    repo: git@github.com:stronglogicsolutions/ky_gui
+    dest: /data/kygui
+
+- name: Clone KBOT
+  ignore_errors: true
+  ansible.builtin.git:
+    repo: git@github.com:stronglogicsolutions/kbot
+    dest: /data/kbot
 
-- name: Unpack Telegram
-  shell: cd /home/logicp/Downloads && tar xvf tsetup.xz
+- name: Clone Keleqram
+  ignore_errors: true 
+  ansible.builtin.git:
+    repo: git@github.com:stronglogicsolutions/keleqram
+    dest: /data/keleqram
 
+- name: Clone KGRAM
+  ignore_errors: true
+  ansible.builtin.git:
+    repo: git@github.com:stronglogicsolutions/kgram
+    dest: /data/kgram
+
+- name: Clone KStodon
+  ignore_errors: true
+  ansible.builtin.git:
+    repo: git@github.com:stronglogicsolutions/kstodon
+    dest: /data/kstodon
+
+- name: Clone KScord
+  ignore_errors: true
+  ansible.builtin.git:
+    repo: git@github.com:stronglogicsolutions/kscord
+    dest: /data/kscord
+
+- name: Clone KTube
+  ignore_errors: true
+  ansible.builtin.git:
+    repo: git@github.com:stronglogicsolutions/ktube
+    dest: /data/ktube
+
+- name: Clone KNeural
+  ignore_errors: true
+  ansible.builtin.git:
+    repo: git@github.com:stronglogicsolutions/kneural
+    dest: /data/kneural
 
+- name: Clone Katrix
+  ignore_errors: true
+  ansible.builtin.git:
+    repo: git@github.com:stronglogicsolutions/katrix
+    dest: /data/katrix
+
+- name: Clone Kwitter
+  ignore_errors: true
+  ansible.builtin.git:
+    repo: git@github.com:stronglogicsolutions/kwitter
+    dest: /data/kwitter