39 apt: name={{item}} state=installed |
39 apt: name={{item}} state=installed |
40 with_items: extra_packages |
40 with_items: extra_packages |
41 tags: packages, install |
41 tags: packages, install |
42 |
42 |
43 |
43 |
44 - name: Set default X session to i3 |
44 - name: Set default X session in lightdm |
45 when: with_gui |
45 when: gui.session |
46 ini_file: |
46 ini_file: |
47 dest: /etc/lightdm/lightdm.conf |
47 dest: /etc/lightdm/lightdm.conf |
48 section: SeatDefaults |
48 section: SeatDefaults |
49 option: user-session |
49 option: user-session |
50 value: i3 |
50 value: "{{gui.session}}" |
51 backup: true |
51 backup: true |
52 notify: |
52 notify: |
53 - restart lightdm |
53 - restart lightdm |
54 |
54 |