7 - name: symlink system files
8 file: state=hard force=yes src={{item}} dest={{item|basename|regex_replace('___','/')}}
9 with_fileglob: ~/config/ansible/files/system/*
10 - name: set hostname for current session
13 # Configure package management.
14 - name: update package lists
16 - name: check for initial_purge_happened flag
17 stat: path=flags/initial_purge_happened
18 register: initial_purge
19 - name: perform initial purge
20 include: tasks/initial_purge.yml
21 when: initial_purge.stat.exists == False
22 - name: APT - dist-upgrade
26 - name: ensure newest kernel and grub are installed
27 apt: name={{item}} state=present
35 - name: symlink console config files
36 file: state=link force=yes src={{item}} dest={{item|basename|regex_replace('___','/')}}
37 with_fileglob: ~/config/ansible/files/console/*
38 - name: ensure locales and console-setup are installed
39 apt: name={{item}} state=present
43 - name: generate en_US.UTF-8 locale
44 locale_gen: name=en_US.UTF-8 state=present
45 - name: run setupcon to apply console settings from /etc/default/
49 - name: Ensure dotfile symlinks
50 file: state=link force=yes src={{item}} dest=~/.{{item|basename}}
52 - ~/config/dotfiles/minimal/*
53 - ~/config/dotfiles/root/*
54 - name: ensure ~/.vimbackups directory
55 file: state=directory dest=~/.vimbackups
56 - name: ensure man-db, manpages is installed
57 apt: name={{item}} state=present
61 - name: set /etc/localtime
62 file: state=link force=yes src=/usr/share/zoneinfo/Europe/Berlin dest=/etc/localtime
63 - name: ensure sudo, git, vim, less, openssh are installed
64 apt: name={{item}} state=present
71 - name: ensure boot messages are not cleared on start up
72 replace: dest=/etc/systemd/system/getty.target.wants/getty@tty1.service regexp='^TTYVTDisallocate=yes.*$' replace='TTYVTDisallocate=no'
75 - name: create user plom with sudo privileges and bash shell
76 user: name=plom groups=sudo shell=/bin/bash
77 - name: have config repo in user directory
78 git: repo=https://github.com/plomlompom/config dest=/home/plom/config
82 # Ensure X window environment.
83 - name: ensure minimal X window environment
84 apt: name={{item}} state=present
87 - xserver-xorg-input-evdev # supports all input devices the kernel knows about
88 - xinit # contains startx
89 - libpam-systemd # needed to start X as non-root
90 - name: ensure 3d acceleration and optimus switch
91 apt: name={{item}} state=present
93 - linux-headers-amd64 # necessary to build proper nvidia-driver module
94 - libgl1-mesa-dri # necessary for OpenGL 3D acceleration to work
95 - libglu1-mesa # necessary for OpenGL 3D acceleration to work
98 - name: ensure basic X tools
99 apt: name={{item}} state=present
102 - x11-xserver-utils # includes xrdb which applies .Xresources files
108 # Set up pentadactyl.
109 - name: ensure browser environment
110 apt: name={{item}} state=present
114 - xul-ext-pentadactyl
115 - vim-gtk # used by pentadactyl for text editing