- name: install neovim apt: name=neovim state=present tags: neovim 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 apt: name=zsh state=present tags: zsh become: true - name: switch default shell to zsh shell: chsh -s /usr/bin/zsh tags: shellchange 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: 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 /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 apt: name=postgresql state=present become: true - name: install libpq apt: name=libpq-dev state=present become: true - name: install libpqxx apt: name=libpqxx-dev state=present become: true - name: install cmake apt: name=cmake state=present become: true - name: libpqxx shell: | mkdir /tmp/libpqxx cd /tmp/libpqxx git clone https://github.com/jtv/libpqxx cd libpqxx - name: add nvm 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: install vscode shell: apt-get install -y code become: true #- name: build tools # apt: build-essential libgl1-mesa-dev #become: true #- name: qt #apt: qt5-default #become: true - 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