From e49d3be78075085449683143b42b677afa354beb Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Fri, 17 Mar 2017 15:20:23 +0100 Subject: [PATCH] library/roles/ubuntu-deb-general/tasks/packages.yml: The internal repositories fail on i386. --- ubuntu-deb-general/tasks/packages.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/ubuntu-deb-general/tasks/packages.yml b/ubuntu-deb-general/tasks/packages.yml index 44d0b863..79dd5ad2 100644 --- a/ubuntu-deb-general/tasks/packages.yml +++ b/ubuntu-deb-general/tasks/packages.yml @@ -50,14 +50,26 @@ ignore_errors: True tags: packages -- name: setup system apt repository - apt_repository: repo='deb http://ppa.research-infrastructures.eu/system stable main' update_cache=yes +- name: Remove the broken system apt repository + apt_repository: repo='deb http://ppa.research-infrastructures.eu/system stable main' state=absent when: is_ubuntu ignore_errors: True tags: packages +- name: setup system apt repository + apt_repository: repo='deb [arch=amd64] http://ppa.research-infrastructures.eu/system stable main' update_cache=yes + when: is_ubuntu + ignore_errors: True + tags: packages + +- name: Remove the broken system apt repository for specific distributions + apt_repository: repo='deb http://ppa.research-infrastructures.eu/system {{ ansible_distribution_release }} main' state=absent + when: is_trusty + ignore_errors: True + tags: packages + - name: setup system apt repository for specific distributions - apt_repository: repo='deb http://ppa.research-infrastructures.eu/system {{ ansible_distribution_release }} main' update_cache=yes + apt_repository: repo='deb [arch=amd64] http://ppa.research-infrastructures.eu/system {{ ansible_distribution_release }} main' update_cache=yes when: is_trusty ignore_errors: True tags: packages