roles/devbox/tasks/dist-debian.yml

Mon, 22 Oct 2018 20:52:32 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Mon, 22 Oct 2018 20:52:32 -0500
changeset 84
fdaa84bcac9c
parent 74
87a637974823
child 79
a8d20fd216f1
permissions
-rw-r--r--

add apt-transport-https just in case

---

- 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
    - firefox-esr
  tags: packages, install

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

- 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