roles/devbox/tasks/dist-debian.yml

Sat, 22 Jun 2019 04:23:13 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Sat, 22 Jun 2019 04:23:13 -0400
changeset 80
aa7bb3f0baef
parent 79
a8d20fd216f1
child 81
47d7ef3be553
permissions
-rw-r--r--

Fix deprecated usage

---

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

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

- name: Install non-gui packages
  tags: packages, install
  when: not gui_enabled
  apt:
    state: installed
    name:
      - 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