Fri, 10 Feb 2017 03:23:21 -0500
add more installs
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 |
27
98981c22420a
Add vim and firefox roles
Meredith Howard <mhoward@roomag.org>
parents:
26
diff
changeset
|
4 | apt: name={{item}} state=installed |
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 |
38
06adc2a14d3e
Move stuff back into single playbooks
Meredith Howard <mhoward@roomag.org>
parents:
37
diff
changeset
|
7 | - git |
06adc2a14d3e
Move stuff back into single playbooks
Meredith Howard <mhoward@roomag.org>
parents:
37
diff
changeset
|
8 | - mercurial |
06adc2a14d3e
Move stuff back into single playbooks
Meredith Howard <mhoward@roomag.org>
parents:
37
diff
changeset
|
9 | - zsh |
06adc2a14d3e
Move stuff back into single playbooks
Meredith Howard <mhoward@roomag.org>
parents:
37
diff
changeset
|
10 | - tmux |
06adc2a14d3e
Move stuff back into single playbooks
Meredith Howard <mhoward@roomag.org>
parents:
37
diff
changeset
|
11 | - vim-nox |
06adc2a14d3e
Move stuff back into single playbooks
Meredith Howard <mhoward@roomag.org>
parents:
37
diff
changeset
|
12 | - silversearcher-ag |
06adc2a14d3e
Move stuff back into single playbooks
Meredith Howard <mhoward@roomag.org>
parents:
37
diff
changeset
|
13 | - exuberant-ctags |
0
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
14 | tags: packages, install |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
15 | |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
16 | - name: Install GUI packages |
44 | 17 | when: gui_enabled |
34 | 18 | apt: name={{item}} state=installed |
0
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
19 | with_items: |
45
2383a9aa66a8
actually install lightdm
Meredith Howard <mhoward@roomag.org>
parents:
44
diff
changeset
|
20 | - lightdm |
46 | 21 | - rxvt-unicode-256color |
0
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
22 | - i3 |
48 | 23 | - xautolock |
0
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
24 | - fonts-dejavu-extra |
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
25 | - fonts-opensymbol |
16 | 26 | - scrot |
38
06adc2a14d3e
Move stuff back into single playbooks
Meredith Howard <mhoward@roomag.org>
parents:
37
diff
changeset
|
27 | - vim-gtk |
0
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
28 | tags: packages, install |
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 |
40 | 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 |
40 | 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: |
37 | 39 | - reload lightdm |
0
f834f140ebad
Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
40 | |
44 | 41 | - name: Enable and start lightdm |
42 | when: gui_enabled | |
43 | service: | |
44 | name: lightdm | |
45 | enabled: yes | |
46 | state: started | |
47 | ||
38
06adc2a14d3e
Move stuff back into single playbooks
Meredith Howard <mhoward@roomag.org>
parents:
37
diff
changeset
|
48 | - apt_repository: |
06adc2a14d3e
Move stuff back into single playbooks
Meredith Howard <mhoward@roomag.org>
parents:
37
diff
changeset
|
49 | repo: "deb http://mozilla.debian.net/ {{ansible_distribution_release}}-backports firefox-release" |
06adc2a14d3e
Move stuff back into single playbooks
Meredith Howard <mhoward@roomag.org>
parents:
37
diff
changeset
|
50 | when: ansible_distribution_release != 'NA' |
06adc2a14d3e
Move stuff back into single playbooks
Meredith Howard <mhoward@roomag.org>
parents:
37
diff
changeset
|
51 | tags: repos |
06adc2a14d3e
Move stuff back into single playbooks
Meredith Howard <mhoward@roomag.org>
parents:
37
diff
changeset
|
52 | |
06adc2a14d3e
Move stuff back into single playbooks
Meredith Howard <mhoward@roomag.org>
parents:
37
diff
changeset
|
53 | - apt: |
06adc2a14d3e
Move stuff back into single playbooks
Meredith Howard <mhoward@roomag.org>
parents:
37
diff
changeset
|
54 | name: firefox |
06adc2a14d3e
Move stuff back into single playbooks
Meredith Howard <mhoward@roomag.org>
parents:
37
diff
changeset
|
55 | state: latest |
06adc2a14d3e
Move stuff back into single playbooks
Meredith Howard <mhoward@roomag.org>
parents:
37
diff
changeset
|
56 | tags: packages, install |
06adc2a14d3e
Move stuff back into single playbooks
Meredith Howard <mhoward@roomag.org>
parents:
37
diff
changeset
|
57 | when: ansible_distribution_release != 'NA' |