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