roles/repositories/tasks/debian.yml

Sun, 20 Mar 2016 11:01:02 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Sun, 20 Mar 2016 11:01:02 -0400
changeset 19
cdba9c64cdec
parent 17
d0d9fdf1f9d3
child 21
92716e2eba34
permissions
-rw-r--r--

Skip gui.session unless gui.enabled

---

- 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 in ['i386', 'x86_64']
  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

mercurial