1 --- |
|
2 |
|
3 # Not used here, but nice to have ready |
|
4 - name: add backports repo |
|
5 apt_repository: |
|
6 repo: "deb http://http.debian.net/debian {{ansible_distribution_release}}-backports main" |
|
7 tags: repos |
|
8 |
|
9 - name: add pgdg repo |
|
10 apt_repository: |
|
11 repo: "deb http://apt.postgresql.org/pub/repos/apt/ {{ansible_distribution_release}}-pgdg main" |
|
12 tags: repos |
|
13 |
|
14 - name: apt upgrade |
|
15 apt: upgrade=yes update_cache=yes cache_valid_time=3600 |
|
16 tags: packages, upgrade |
|
17 |
|
18 - name: Install base packages |
|
19 apt: name={{item}} state=installed |
|
20 with_items: |
|
21 - sudo |
|
22 - build-essential |
|
23 - git |
|
24 - mercurial |
|
25 - vim |
|
26 - exuberant-ctags |
|
27 - silversearcher-ag |
|
28 - zsh |
|
29 - tmux |
|
30 tags: packages, install |
|
31 |
|
32 - name: Install GUI packages |
|
33 when: gui.enabled |
|
34 apt: name={{item}} state=installed |
|
35 with_items: |
|
36 - i3 |
|
37 - vim-gtk |
|
38 - iceweasel |
|
39 - fonts-dejavu-extra |
|
40 - fonts-opensymbol |
|
41 tags: packages, install |
|
42 |
|
43 - name: Install Extra packages |
|
44 apt: name={{item}} state=installed |
|
45 with_items: extra_packages |
|
46 tags: packages, install |
|
47 |
|
48 |
|
49 - name: Set default X session in lightdm |
|
50 when: gui.session |
|
51 ini_file: |
|
52 dest: /etc/lightdm/lightdm.conf |
|
53 section: SeatDefaults |
|
54 option: user-session |
|
55 value: "{{gui.session}}" |
|
56 backup: true |
|
57 notify: |
|
58 - restart lightdm |
|
59 |
|