Skip to content

lbesnard/ansible_laptop

Repository files navigation

Ansible - provision laptop 💻

This repo aims at provisionning my personal laptop (debian base with XFCE). It actively uses my personal dotfiles.

It will install:

  • i3 windows manager and i3blocks

  • Shell tools

    • zsh (via zplug) powerful bash alternative
    • tmux (via tpm) (key binding ctrl-a in host and ctrl-b in guest vi ssh)
    • fzf (perform vi ** tab for example)
    • autojump j (z is disabled)
    • ranger (terminal file manager)
    • find (fd, ag, ripgrep)
  • vim-plug

  • neovim (vim replacement) with its python3 conda environment

  • git tools

  • lnav (log viewer)

  • linuxbrew

  • cheat (cheat find for example)

  • pgcli (psql client with fuzzy search)

  • colorls

  • powerline fonts

  • nerds-fonts

  • dotbot

  • anaconda3 python environment

  • Work related

    • git repositories
    • conda environment for data-services
    • NetCDF libraries

Most packages are installed via the debian apt-get tools. However, many get also installed via Homebrew/Linuxbrew. This way ensures to be able to install software and their latest version on various machines were sudo access is not granted

Installation

1.1 install private key

install key (usually id_rsa)to $HOME/.ssh (600)

chmod 600 ~/.ssh/config
chmod 644 ~/.ssh/id_rsa.pub
chmod 600 ~/.ssh/id_rsa
ssh-add

2. provision localhost debian based machine with Ansible

2.1 with sudo privileges

Run the following command in bash. (will install git, ansible; good for a new OS)

curl -L https://raw.githubusercontent.com/lbesnard/ansible_laptop/master/install.sh | bash

OR if ansible is already installed on the machine

/usr/bin/ansible-pull -U https://github.com/lbesnard/ansible_laptop.git -K -i hosts

2.2 Without sudo (and if ansible priorly installed via linuxbrew)

ansible-pull -U https://github.com/lbesnard/ansible_laptop.git remote.yml -i hosts

2.3 Install specific tag with no sudo privileges

ansible-pull -i hosts -U https://github.com/lbesnard/ansible_laptop.git -t conda
ansible-pull -i hosts -U https://github.com/lbesnard/ansible_laptop.git -t neovim

2.4 Run locally (examples)

git clone https://github.com/lbesnard/ansible_laptop.git
cd ansible_laptop

# run as root
/usr/bin/ansible-playbook -i hosts local.yml -K

# run as non sudo user
ansible-playbook -i hosts remote.yml --skip-tags apt

# run as non sudo user with a specific tag
ansible-playbook -i hosts remote.yml -t conda

3 Post Installation

install manuall vbox ext pack because of manual licencing sudo apt-get install virtualbox-ext-pack

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published