roles/devbox/tasks/debian.yml

changeset 1
18da47fe753c
parent 0
f834f140ebad
child 2
515d87b4bfc4
equal deleted inserted replaced
0:f834f140ebad 1:18da47fe753c
1 --- 1 ---
2 2
3 # Not used here, but nice to have ready
3 - name: add backports 4 - name: add backports
4 apt_repository: 5 apt_repository:
5 repo: "deb http://http.debian.net/debian {{ansible_distribution_release}}-backports main" 6 repo: "deb http://http.debian.net/debian {{ansible_distribution_release}}-backports main"
6 7
7 - name: apt upgrade 8 - name: apt upgrade
38 apt: name={{item}} state=installed 39 apt: name={{item}} state=installed
39 with_items: extra_packages 40 with_items: extra_packages
40 tags: packages, install 41 tags: packages, install
41 42
42 43
43 - name: Check for lightdm.conf 44 - name: Set default X session to i3
44 when: with_gui 45 when: with_gui
45 stat:
46 path: /etc/lightdm/lightdm.conf
47 register: lightdmconf
48
49 - name: Set default X session to i3
50 when: with_gui and lightdmconf.stat.exists
51 ini_file: 46 ini_file:
52 dest: /etc/lightdm/lightdm.conf 47 dest: /etc/lightdm/lightdm.conf
53 section: SeatDefaults 48 section: SeatDefaults
54 option: user-session 49 option: user-session
55 value: i3 50 value: i3

mercurial