From b0ff6beabf4486f76f9f77905ead4c17940971da Mon Sep 17 00:00:00 2001 From: TheDumbTechGuy Date: Wed, 19 Apr 2017 16:05:50 +0000 Subject: [PATCH] Support for PostgreSQL 9.6 on Ubuntu 16.1 --- tasks/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index bd7aa2c..01dccc5 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -3,8 +3,9 @@ apt_key: url=https://www.postgresql.org/media/keys/ACCC4CF8.asc state=present - name: Configure the PostgreSQL APT repositories - apt_repository: repo="deb http://apt.postgresql.org/pub/repos/apt/ {{ ansible_distribution_release}}-pgdg main" - state=present + apt_repository: + repo: "deb http://apt.postgresql.org/pub/repos/apt/ {{ 'xenial' if ansible_distribution_release == 'yakkety' else ansible_distribution_release }}-pgdg main" + state: present - name: Install PostgreSQL apt: pkg={{ item }} state=present