Sat, 19 Mar 2016 03:47:06 -0400
Add notes
0
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
1 | --- |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
2 | |
10
ee86092e374a
use dist-named includes. fix apt-repository for rpi
Meredith Howard <mhoward@roomag.org>
parents:
9
diff
changeset
|
3 | - name: add python-apt |
ee86092e374a
use dist-named includes. fix apt-repository for rpi
Meredith Howard <mhoward@roomag.org>
parents:
9
diff
changeset
|
4 | apt: name=python-apt state=installed |
ee86092e374a
use dist-named includes. fix apt-repository for rpi
Meredith Howard <mhoward@roomag.org>
parents:
9
diff
changeset
|
5 | |
1
18da47fe753c
Add some useful comments
Meredith Howard <mhoward@roomag.org>
parents:
0
diff
changeset
|
6 | # Not used here, but nice to have ready |
5 | 7 | - name: add backports repo |
0
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
8 | apt_repository: |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
9 | repo: "deb http://http.debian.net/debian {{ansible_distribution_release}}-backports main" |
5 | 10 | tags: repos |
11 | ||
12 | - name: add pgdg repo | |
10
ee86092e374a
use dist-named includes. fix apt-repository for rpi
Meredith Howard <mhoward@roomag.org>
parents:
9
diff
changeset
|
13 | when: ansible_architecture == 'amd64' |
5 | 14 | apt_repository: |
15 | repo: "deb http://apt.postgresql.org/pub/repos/apt/ {{ansible_distribution_release}}-pgdg main" | |
16 | tags: repos | |
0
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
17 | |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
18 | - name: apt upgrade |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
19 | apt: upgrade=yes update_cache=yes cache_valid_time=3600 |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
20 | tags: packages, upgrade |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
21 | |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
22 | - name: Install base packages |
10
ee86092e374a
use dist-named includes. fix apt-repository for rpi
Meredith Howard <mhoward@roomag.org>
parents:
9
diff
changeset
|
23 | apt: name={{item}} state=installed default_release={{ansible_distribution_release}}-backports |
0
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
24 | with_items: |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
25 | - sudo |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
26 | - build-essential |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
27 | - git |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
28 | - mercurial |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
29 | - vim |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
30 | - exuberant-ctags |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
31 | - silversearcher-ag |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
32 | - zsh |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
33 | - tmux |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
34 | tags: packages, install |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
35 | |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
36 | - name: Install GUI packages |
2
515d87b4bfc4
Reorganize gui vars and allow setting default lightdm session
Meredith Howard <mhoward@roomag.org>
parents:
1
diff
changeset
|
37 | when: gui.enabled |
10
ee86092e374a
use dist-named includes. fix apt-repository for rpi
Meredith Howard <mhoward@roomag.org>
parents:
9
diff
changeset
|
38 | apt: name={{item}} state=installed default_release={{ansible_distribution_release}}-backports |
0
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
39 | with_items: |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
40 | - i3 |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
41 | - vim-gtk |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
42 | - iceweasel |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
43 | - fonts-dejavu-extra |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
44 | - fonts-opensymbol |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
45 | tags: packages, install |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
46 | |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
47 | - name: Install Extra packages |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
48 | apt: name={{item}} state=installed |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
49 | with_items: extra_packages |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
50 | tags: packages, install |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
51 | |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
52 | |
2
515d87b4bfc4
Reorganize gui vars and allow setting default lightdm session
Meredith Howard <mhoward@roomag.org>
parents:
1
diff
changeset
|
53 | - name: Set default X session in lightdm |
515d87b4bfc4
Reorganize gui vars and allow setting default lightdm session
Meredith Howard <mhoward@roomag.org>
parents:
1
diff
changeset
|
54 | when: gui.session |
0
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
55 | ini_file: |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
56 | dest: /etc/lightdm/lightdm.conf |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
57 | section: SeatDefaults |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
58 | option: user-session |
2
515d87b4bfc4
Reorganize gui vars and allow setting default lightdm session
Meredith Howard <mhoward@roomag.org>
parents:
1
diff
changeset
|
59 | value: "{{gui.session}}" |
0
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
60 | backup: true |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
61 | notify: |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
62 | - restart lightdm |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
63 |