forked from ceph/ceph-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocalrepo-site.yml.sample
56 lines (47 loc) · 957 Bytes
/
localrepo-site.yml.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
# Sample Playbook for local mirrors.
# Additional/optional step to generate repos.d file for local mirrors.
# Defines deployment design and assigns role to server groups
- hosts: all
max_fail_percentage: 0
become: True
vars:
repolist:
- { src: "/<path to repo file>/localmirror_ceph.repo", dest: "/etc/yum.repos.d/ceph.repo" }
tasks:
- name: Copy User provided repo files to /etc/yum.repos.d/
copy:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
owner: root
group: root
with_items:
- "{{ repolist }}"
- hosts: mons
become: True
roles:
- ceph-mon
- hosts: agents
become: True
roles:
- ceph-agent
- hosts: osds
become: True
roles:
- ceph-osd
- hosts: mdss
become: True
roles:
- ceph-mds
- hosts: rgws
become: True
roles:
- ceph-rgw
- hosts: nfss
become: True
roles:
- ceph-nfs
- hosts: restapis
become: True
roles:
- ceph-restapi