devenv/local.yml

41 lines
1.7 KiB
YAML

# To run, use:
# sudo apt-get install -y ansible git
# git clone https://juju.nz/src/michaelh/devenv.git .devenv
# ansible-playbook -i 'localhost ansible_connection=local,' -K .devenv/local.yml
#
- hosts: localhost
vars:
- me: michaelh
- home: /home/{{ me }}
- juju: juju@juju.nz
tasks:
- name: Install the basics
apt: name=jed,git,psmisc,unzip,git
become: yes
- name: Create a new SSH key
command: ssh-keygen -f {{ home }}/.ssh/id_rsa -C {{ me }}@{{ ansible_date_time.date }} creates={{ home }}/.ssh/id_rsa
- name: Install the dev bits
apt: name=emacs,yaml-mode,ssh,build-essential,man,manpages-dev,ack-grep,screen,exuberant-ctags,clang-format,ispell,elpa-use-package
become: yes
- name: Install the ARM dev tools
apt: name=g++-arm-linux-gnueabi,g++-arm-linux-gnueabihf
become: yes
- name: Install python3 and modules
apt: name=python3,python3-serial,python3-matplotlib,python3-pip
become: yes
- name: Install crosstool-NG basics
apt: name=unrar-free,autoconf,automake,libtool,libtool-bin,gcc,g++,gperf,flex,bison,texinfo,gawk,ncurses-dev,libexpat-dev,sed,srecord,bc
become: yes
- name: Install common packages
apt: name=gimp,qt5-style-plugins,dkms,iftop,vlc,pulseview,sigrok-firmware-fx2lafw,sbuild,silversearcher-ag,entr,ninja-build,cmake
become: yes
- name: Set up permissions
user: name={{ me }} append=yes groups=dialout,sudo,sbuild
become: yes
- name: Install CAD
apt: name=openscad
become: yes
- name: Themes
apt: name=gnome-tweaks,adapta-gtk-theme,blackbird-gtk-theme,bluebird-gtk-theme,breeze-gtk-theme,greybird-gtk-theme,materia-gtk-theme,numix-blue-gtk-theme,numix-gtk-theme,pop-gtk-theme,fonts-hack,fonts-inconsolata,fonts-firacode,fonts-terminus
become: yes