Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions roles/testnode/tasks/apt/repos.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
---
# Check for and remove custom repos.
# http://tracker.ceph.com/issues/12794
- name: Check for custom repos
shell: "ls -1 /etc/apt/sources.list.d/"
register: custom_repos
changed_when: false

- name: Remove custom repos
file: path=/etc/apt/sources.list.d/{{ item }} state=absent
with_items: "{{ custom_repos.stdout_lines|default([]) }}"
# Ignore changes here because we will be removing repos that we end up re-adding later
changed_when: false

- name: Set apt preferences
template:
dest: "/etc/apt/preferences.d/ceph.pref"
Expand All @@ -21,19 +8,6 @@
mode: 0644
register: apt_prefs

# Starting with ubuntu 15.04 we no longer maintain our own package mirrors.
# For anything ubuntu < 15.04 or debian <=7 we still do.
- name: Add sources list
template:
dest: /etc/apt/sources.list
src: "apt/sources.list.{{ ansible_distribution_release | lower }}"
owner: root
group: root
mode: 0644
register: sources
when: ansible_architecture != "aarch64" and
ansible_distribution_major_version|int < 15

- name: Install apt keys
apt_key:
url: "{{ item }}"
Expand Down
Loading