roles/devbox/tasks/debian.yml

changeset 0
f834f140ebad
child 1
18da47fe753c
equal deleted inserted replaced
-1:000000000000 0:f834f140ebad
1 ---
2
3 - name: add backports
4 apt_repository:
5 repo: "deb http://http.debian.net/debian {{ansible_distribution_release}}-backports main"
6
7 - name: apt upgrade
8 apt: upgrade=yes update_cache=yes cache_valid_time=3600
9 tags: packages, upgrade
10
11 - name: Install base packages
12 apt: name={{item}} state=installed
13 with_items:
14 - sudo
15 - build-essential
16 - git
17 - mercurial
18 - vim
19 - exuberant-ctags
20 - silversearcher-ag
21 - zsh
22 - tmux
23 - ruby
24 tags: packages, install
25
26 - name: Install GUI packages
27 when: with_gui
28 apt: name={{item}} state=installed
29 with_items:
30 - i3
31 - vim-gtk
32 - iceweasel
33 - fonts-dejavu-extra
34 - fonts-opensymbol
35 tags: packages, install
36
37 - name: Install Extra packages
38 apt: name={{item}} state=installed
39 with_items: extra_packages
40 tags: packages, install
41
42
43 - name: Check for lightdm.conf
44 when: with_gui
45 stat:
46 path: /etc/lightdm/lightdm.conf
47 register: lightdmconf
48
49 - name: Set default X session to i3
50 when: with_gui and lightdmconf.stat.exists
51 ini_file:
52 dest: /etc/lightdm/lightdm.conf
53 section: SeatDefaults
54 option: user-session
55 value: i3
56 backup: true
57 notify:
58 - restart lightdm
59

mercurial