roles/devbox/tasks/dist-debian.yml

Sun, 20 Mar 2016 02:03:27 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Sun, 20 Mar 2016 02:03:27 -0400
changeset 17
d0d9fdf1f9d3
parent 16
c781422f639f
child 18
934f20587c6d
permissions
-rw-r--r--

start breaking roles out

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
5ca52e9c51fa Add pgdg repository
Meredith Howard <mhoward@roomag.org>
parents: 2
diff changeset
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
5ca52e9c51fa Add pgdg repository
Meredith Howard <mhoward@roomag.org>
parents: 2
diff changeset
10 tags: repos
5ca52e9c51fa Add pgdg repository
Meredith Howard <mhoward@roomag.org>
parents: 2
diff changeset
11
5ca52e9c51fa Add pgdg repository
Meredith Howard <mhoward@roomag.org>
parents: 2
diff changeset
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
5ca52e9c51fa Add pgdg repository
Meredith Howard <mhoward@roomag.org>
parents: 2
diff changeset
14 apt_repository:
5ca52e9c51fa Add pgdg repository
Meredith Howard <mhoward@roomag.org>
parents: 2
diff changeset
15 repo: "deb http://apt.postgresql.org/pub/repos/apt/ {{ansible_distribution_release}}-pgdg main"
5ca52e9c51fa Add pgdg repository
Meredith Howard <mhoward@roomag.org>
parents: 2
diff changeset
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 - build-essential
f834f140ebad Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
26 - vim
f834f140ebad Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
27 - exuberant-ctags
f834f140ebad Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
28 - tmux
f834f140ebad Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
29 tags: packages, install
f834f140ebad Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
30
f834f140ebad Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
31 - name: Install GUI packages
2
515d87b4bfc4 Reorganize gui vars and allow setting default lightdm session
Meredith Howard <mhoward@roomag.org>
parents: 1
diff changeset
32 when: gui.enabled
10
ee86092e374a use dist-named includes. fix apt-repository for rpi
Meredith Howard <mhoward@roomag.org>
parents: 9
diff changeset
33 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
34 with_items:
f834f140ebad Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
35 - i3
f834f140ebad Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
36 - vim-gtk
f834f140ebad Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
37 - iceweasel
f834f140ebad Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
38 - fonts-dejavu-extra
f834f140ebad Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
39 - fonts-opensymbol
16
c781422f639f add scrot
Meredith Howard <mhoward@roomag.org>
parents: 15
diff changeset
40 - scrot
0
f834f140ebad Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
41 tags: packages, install
f834f140ebad Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
42
f834f140ebad Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
43 - name: Install Extra packages
f834f140ebad Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
44 apt: name={{item}} state=installed
15
8331067f9c8c deprecation fixes
Meredith Howard <mhoward@roomag.org>
parents: 10
diff changeset
45 with_items: "{{extra_packages}}"
0
f834f140ebad Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
46 tags: packages, install
f834f140ebad Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
47
f834f140ebad Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
48
2
515d87b4bfc4 Reorganize gui vars and allow setting default lightdm session
Meredith Howard <mhoward@roomag.org>
parents: 1
diff changeset
49 - 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
50 when: gui.session
0
f834f140ebad Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
51 ini_file:
f834f140ebad Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
52 dest: /etc/lightdm/lightdm.conf
f834f140ebad Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
53 section: SeatDefaults
f834f140ebad Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
54 option: user-session
2
515d87b4bfc4 Reorganize gui vars and allow setting default lightdm session
Meredith Howard <mhoward@roomag.org>
parents: 1
diff changeset
55 value: "{{gui.session}}"
0
f834f140ebad Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
56 backup: true
f834f140ebad Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
57 notify:
f834f140ebad Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
58 - restart lightdm
f834f140ebad Initial commit of devbox-ansible
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
59

mercurial