Sun, 20 Mar 2016 11:07:35 -0400
don't use 'all' hostgroup
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 | |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
3 | - name: Install base packages |
10
ee86092e374a
use dist-named includes. fix apt-repository for rpi
Meredith Howard <mhoward@roomag.org>
parents:
9
diff
changeset
|
4 | 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
|
5 | with_items: |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
6 | - build-essential |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
7 | - vim |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
8 | - exuberant-ctags |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
9 | - tmux |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
10 | tags: packages, install |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
11 | |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
12 | - name: Install GUI packages |
2
515d87b4bfc4
Reorganize gui vars and allow setting default lightdm session
Meredith Howard <mhoward@roomag.org>
parents:
1
diff
changeset
|
13 | when: gui.enabled |
10
ee86092e374a
use dist-named includes. fix apt-repository for rpi
Meredith Howard <mhoward@roomag.org>
parents:
9
diff
changeset
|
14 | 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
|
15 | with_items: |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
16 | - i3 |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
17 | - vim-gtk |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
18 | - iceweasel |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
19 | - fonts-dejavu-extra |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
20 | - fonts-opensymbol |
16 | 21 | - scrot |
0
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
22 | tags: packages, install |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
23 | |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
24 | - name: Install Extra packages |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
25 | apt: name={{item}} state=installed |
15 | 26 | with_items: "{{extra_packages}}" |
0
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
27 | tags: packages, install |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
28 | |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
29 | |
2
515d87b4bfc4
Reorganize gui vars and allow setting default lightdm session
Meredith Howard <mhoward@roomag.org>
parents:
1
diff
changeset
|
30 | - name: Set default X session in lightdm |
19
cdba9c64cdec
Skip gui.session unless gui.enabled
Meredith Howard <mhoward@roomag.org>
parents:
18
diff
changeset
|
31 | when: gui.enabled and gui.session |
0
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
32 | ini_file: |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
33 | dest: /etc/lightdm/lightdm.conf |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
34 | section: SeatDefaults |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
35 | option: user-session |
2
515d87b4bfc4
Reorganize gui vars and allow setting default lightdm session
Meredith Howard <mhoward@roomag.org>
parents:
1
diff
changeset
|
36 | value: "{{gui.session}}" |
0
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
37 | backup: true |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
38 | notify: |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
39 | - restart lightdm |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
40 |