|
@@ -21,18 +21,30 @@
|
|
tags: shellchange
|
|
tags: shellchange
|
|
become: true
|
|
become: true
|
|
|
|
|
|
-#- name: clone oh-my-zsh
|
|
|
|
- #get_url:
|
|
|
|
- #url: https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh
|
|
|
|
- #dest: /tmp/zsh_install.sh
|
|
|
|
- #mode: 0774
|
|
|
|
|
|
+- name: clone oh-my-zsh
|
|
|
|
+ get_url:
|
|
|
|
+ url: https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh
|
|
|
|
+ dest: /tmp/zsh_install.sh
|
|
|
|
+ mode: 0774
|
|
|
|
|
|
-#- name: install oh-my-zsh
|
|
|
|
- #shell: sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
|
|
|
|
|
+- name: install oh-my-zsh
|
|
|
|
+ shell: sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
|
|
|
|
|
-#- name: neovim plug
|
|
|
|
- #shell: sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
|
|
|
|
- #https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
|
|
|
|
|
+- name: neovim plug
|
|
|
|
+ shell: sh -c "$(curl -fLo /home/logicp/.local/share/nvim/site/autoload/plug.vim --create-dirs \
|
|
|
|
+ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim)"
|
|
|
|
+
|
|
|
|
+- name: nodejs repo
|
|
|
|
+ shell: sh -c 'curl -fsSL https://deb.nodesource.com/setup_15.x | sudo -E bash -'
|
|
|
|
+
|
|
|
|
+- name: nodejs install
|
|
|
|
+ apt: name=nodejs state=present
|
|
|
|
+ tags: nodejs
|
|
|
|
+ become: true
|
|
|
|
+
|
|
|
|
+- name: yarn
|
|
|
|
+ npm: name=yarn global=true
|
|
|
|
+ become: true
|
|
|
|
|
|
- name: install postgres
|
|
- name: install postgres
|
|
apt: name=postgresql state=present
|
|
apt: name=postgresql state=present
|
|
@@ -57,38 +69,30 @@
|
|
git clone https://github.com/jtv/libpqxx
|
|
git clone https://github.com/jtv/libpqxx
|
|
cd libpqxx
|
|
cd libpqxx
|
|
|
|
|
|
-
|
|
|
|
-- name: add yarn
|
|
|
|
- shell: |
|
|
|
|
- curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
|
|
|
|
- echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
|
|
|
|
- sudo apt update && sudo apt install --no-install-recommends yarn
|
|
|
|
- become: true
|
|
|
|
-
|
|
|
|
- name: add nvm
|
|
- name: add nvm
|
|
shell: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
|
|
shell: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
|
|
|
|
|
|
|
|
|
|
-#- name: add vscode repo
|
|
|
|
- #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'
|
|
|
|
- #become: true
|
|
|
|
|
|
+- name: add vscode repo
|
|
|
|
+ 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'
|
|
|
|
+ become: true
|
|
|
|
|
|
-#- name: install vscode
|
|
|
|
- #shell: sudo apt-get install -y code
|
|
|
|
- #become: true
|
|
|
|
|
|
+- name: install vscode
|
|
|
|
+ shell: apt-get install -y code
|
|
|
|
+ become: true
|
|
|
|
|
|
-#- name: build tools
|
|
|
|
- #apt: build-essential libgl1-mesa-dev
|
|
|
|
|
|
+ #- name: build tools
|
|
|
|
+ # apt: build-essential libgl1-mesa-dev
|
|
#become: true
|
|
#become: true
|
|
|
|
|
|
#- name: qt
|
|
#- name: qt
|
|
#apt: qt5-default
|
|
#apt: qt5-default
|
|
#become: true
|
|
#become: true
|
|
|
|
|
|
-#- name: download telegram
|
|
|
|
- #shell: |
|
|
|
|
- #wget -O- https://telegram.org/dl/desktop/linux | sudo tar xJ -C /opt/
|
|
|
|
|
|
+- name: download telegram
|
|
|
|
+ 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: link telegram
|
|
|
|
+ shell: |
|
|
|
|
+ sudo ln -s /opt/Telegram/Telegram /usr/local/bin/telegram-desktop
|