roles/devbox/tasks/debian.yml

Sat, 30 May 2015 04:14:54 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Sat, 30 May 2015 04:14:54 -0400
changeset 1
18da47fe753c
parent 0
f834f140ebad
child 2
515d87b4bfc4
permissions
-rw-r--r--

Add some useful comments

---

# Not used here, but nice to have ready
- name: add backports
  apt_repository:
    repo: "deb http://http.debian.net/debian {{ansible_distribution_release}}-backports main"

- name: apt upgrade
  apt: upgrade=yes update_cache=yes cache_valid_time=3600 
  tags: packages, upgrade

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

- name: Install GUI packages
  when: with_gui
  apt: name={{item}} state=installed
  with_items:
    - i3
    - vim-gtk
    - iceweasel
    - fonts-dejavu-extra
    - fonts-opensymbol
  tags: packages, install

- name: Install Extra packages
  apt: name={{item}} state=installed
  with_items: extra_packages
  tags: packages, install


- name: Set default X session to i3
  when: with_gui
  ini_file:
    dest: /etc/lightdm/lightdm.conf
    section: SeatDefaults
    option: user-session
    value: i3
    backup: true
  notify:
  - restart lightdm

mercurial