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 |