roles/devbox/tasks/dist-debian.yml

Wed, 14 Jun 2017 22:24:07 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 14 Jun 2017 22:24:07 -0400
changeset 57
6172fc31a08f
parent 53
4cac9ded1fb8
child 63
f49b84e25dcc
permissions
-rw-r--r--

flatten

---

- name: Install base packages
  apt: name={{item}} state=installed
  with_items:
    - build-essential
    - git
    - mercurial
    - zsh
    - tmux
    - vim
    - silversearcher-ag
    - exuberant-ctags
    - unattended-upgrades
  tags: packages, install

- name: Install GUI packages
  when: gui_enabled
  apt: name={{item}} state=installed
  with_items:
    - lightdm
    - rxvt-unicode-256color
    - i3
    - xautolock
    - fonts-dejavu-extra
    - fonts-opensymbol
    - scrot
    - vim-gtk
  tags: packages, install

- name: Install non-gui packages
  when: not gui_enabled
  apt: name={{item}} state=installed
  with_items:
    - vim-nox

- name: Set default X session in lightdm
  when: gui_enabled and gui_session
  ini_file:
    dest: /etc/lightdm/lightdm.conf
    section: SeatDefaults
    option: user-session
    value: "{{gui_session}}"
    backup: true

- name: Enable and start lightdm
  when: gui_enabled
  service:
    name: lightdm
    enabled: yes
    state: started

mercurial