roles/devbox/tasks/dist-debian.yml

Sat, 19 Mar 2016 03:11:11 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Sat, 19 Mar 2016 03:11:11 -0400
changeset 10
ee86092e374a
parent 9
roles/devbox/tasks/debian.yml@40d4e3ca3b42
child 15
8331067f9c8c
permissions
-rw-r--r--

use dist-named includes. fix apt-repository for rpi

---

- name: add python-apt
  apt: name=python-apt state=installed

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

- name: add pgdg repo
  when: ansible_architecture == 'amd64'
  apt_repository:
    repo: "deb http://apt.postgresql.org/pub/repos/apt/ {{ansible_distribution_release}}-pgdg main"
  tags: repos

- 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 default_release={{ansible_distribution_release}}-backports
  with_items:
    - sudo
    - build-essential
    - git
    - mercurial
    - vim
    - exuberant-ctags
    - silversearcher-ag
    - zsh
    - tmux
  tags: packages, install

- name: Install GUI packages
  when: gui.enabled
  apt: name={{item}} state=installed default_release={{ansible_distribution_release}}-backports
  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 in lightdm
  when: gui.session
  ini_file:
    dest: /etc/lightdm/lightdm.conf
    section: SeatDefaults
    option: user-session
    value: "{{gui.session}}"
    backup: true
  notify:
  - restart lightdm

mercurial