File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- # Check for and remove custom repos.
3
- # http://tracker.ceph.com/issues/12794
4
- - name : Check for custom repos
5
- shell : " ls -1 /etc/apt/sources.list.d/"
6
- register : custom_repos
7
- changed_when : false
8
-
9
- - name : Remove custom repos
10
- file : path=/etc/apt/sources.list.d/{{ item }} state=absent
11
- with_items : " {{ custom_repos.stdout_lines|default([]) }}"
12
- # Ignore changes here because we will be removing repos that we end up re-adding later
13
- changed_when : false
14
-
15
2
- name : Set apt preferences
16
3
template :
17
4
dest : " /etc/apt/preferences.d/ceph.pref"
21
8
mode : 0644
22
9
register : apt_prefs
23
10
24
- # Starting with ubuntu 15.04 we no longer maintain our own package mirrors.
25
- # For anything ubuntu < 15.04 or debian <=7 we still do.
26
- - name : Add sources list
27
- template :
28
- dest : /etc/apt/sources.list
29
- src : " apt/sources.list.{{ ansible_distribution_release | lower }}"
30
- owner : root
31
- group : root
32
- mode : 0644
33
- register : sources
34
- when : ansible_architecture != "aarch64" and
35
- ansible_distribution_major_version|int < 15
36
-
37
11
- name : Install apt keys
38
12
apt_key :
39
13
url : " {{ item }}"
You can’t perform that action at this time.
0 commit comments