7 - name: symlink system files
8 file: state=link 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: symlink console config files
27 file: state=link force=yes src={{item}} dest={{item|basename|regex_replace('___','/')}}
28 with_fileglob: ~/config/ansible/files/console/*
29 - name: ensure locales and console-setup are installed
30 apt: name={{item}} state=present
34 - name: generate en_US.UTF-8 locale
35 locale_gen: name=en_US.UTF-8 state=present
36 - name: run setupcon to apply console settings from /etc/default/
40 - name: Ensure dotfile symlinks
41 file: state=link force=yes src={{item}} dest=~/.{{item|basename}}
42 with_fileglob: ~/config/ansible/files/dotfiles/*
43 - name: ensure ~/.vimbackups directory
44 file: state=directory dest=~/.vimbackups
45 - name: ensure man-db, manpages is installed
46 apt: name={{item}} state=present
50 - name: set /etc/localtime
51 file: state=link force=yes src=/usr/share/zoneinfo/Europe/Berlin dest=/etc/localtime
52 - name: ensure git, vim, less are installed
53 apt: name={{item}} state=present
58 - name: create user plom
60 - name: ensure boot messages are not cleared on start up
61 replace: dest=/etc/systemd/system/getty.target.wants/getty@tty1.service regexp='^TTYVTDisallocate=yes.*$' replace='TTYVDisallocate=no'