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