logicp пре 3 година
родитељ
комит
6d59b1c007
1 измењених фајлова са 37 додато и 78 уклоњено
  1. 37 78
      arch/roles/common/tasks/main.yml

+ 37 - 78
arch/roles/common/tasks/main.yml

@@ -1,28 +1,20 @@
 ---
-- name: install neovim
-  pacman: name=neovim state=present
-  tags: 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: install neovim
+#   pip: name=neovim state=present
+#   tags: neovim
+#   # become: true
 
-- name: create vi symlink to vim
-  file: src=/usr/bin/vim dest=/usr/bin/vi state=link
+- name: install nginx
+  pacman: name=nginx state=present
+  tags: nginx
   become: true
 
-- name: install zsh shell
+- name: install zsh
   pacman: name=zsh state=present
   tags: zsh
   become: true
 
-- name: switch default shell to fish
+- name: switch default shell to zsh
   shell: chsh -s /usr/bin/zsh
   tags: shellchange
   become: true
@@ -39,85 +31,52 @@
   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 \
-    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
-
-- name: install nodejs
-  pacman: name=nodejs state=present
+- name: install neovim python client
+  pip: name=neovim
+  tags: python neovim
   become: true
 
-- name: install npm
-  pacman: name=npm state=present
+- name: create vim symlink to nvim
+  file: src=/usr/bin/nvim dest=/usr/bin/vim state=link
   become: true
 
-- name: install virtualbox
-  pacman: name=virtualbox state=present
+- name: create vi symlink to vim
+  file: src=/usr/bin/vim dest=/usr/bin/vi state=link
   become: true
 
-- name: install vagrant
-  pacman: name=vagrant state=present
-  become: true
 
-- name: install ruby
-  pacman: name=ruby state=present
+- name: install nodejs
+  pacman: name=nodejs state=present
+  tags: nodejs
   become: true
 
-- name: install ctags
-  pacman: name=ctags state=present
-  become: true
 
-- name: install locate
-  pacman: name=mlocate state=present
+- name: install npm
+  pacman: name=npm state=present
+  tags: npm
   become: true
 
 - name: install yarn
-  shell: curl -o- -L https://yarnpkg.com/install.sh | bash
+  community.general.npm: name=yarn global=yes
   tags: yarn
 
-- name: Download VSCode
-  shell: wget -o /home/logicp/Downloads/vscode.tar.gz https://go.microsoft.com/fwlink/?LinkID=620884
-  tags: VSCode
-
-- name: Uncompress VSCode
-  shell: |
-      cd /home/logicp/Downloads && tar zxvf vscode.tar.gz
-
-- name: Install VSCode
-  shell: |
-      mv /home/logicp/Downloads/VSCode-linux-x64 /opt
+- name: install postgres
+  pacman: name=postgresql state=present
+  tags: postgres
   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: install postgres-libs
+  pacman: name=postgres-libs state=present
+  tags: postgres-libs libpq
   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: 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: Unpack Telegram
-  shell: cd /home/logicp/Downloads && tar xvf tsetup.xz
-
+- name: install cmake
+  pacman: name=cmake state=present
+  tags: cmake
+  become: true
 
+- name: install zeromq
+  pacman: name=zeromq state=present
+  tags: zeromq
+  become: true