roles/repositories/tasks/debian.yml

changeset 32
70eb0f5478d8
parent 21
92716e2eba34
child 48
af865a84224a
--- a/roles/repositories/tasks/debian.yml
+++ b/roles/repositories/tasks/debian.yml
@@ -3,19 +3,14 @@
 - 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"
+- include: debian-stable.yml
+  when: ansible_distribution_release != 'NA'
   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"
+- include: debian-testing.yml
+  when: ansible_distribution_release == 'NA'
   tags: repos
 
 - name: apt upgrade
   apt: upgrade=yes update_cache=yes cache_valid_time=3600 
   tags: packages, upgrade
-

mercurial