Initial commit
[ta/infra-ansible.git] / playbooks / ceph-deploy.yml
1 # cmframework.requires:baremetal-install.yml,baremetal-interface-config.yml,performance-kernel-cmdline-set.yml,ntp-config.yml
2 ---
3
4 # Copyright 2019 Nokia
5
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
9 #
10 #     http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17
18 - hosts: storage
19   become: yes
20   become_method: sudo
21   become_user: root
22   gather_facts: no
23   tasks:
24   - debug:
25       msg: "Deploying ceph if configured"
26     when: (ceph_configured | default(False))
27
28 - include: cleanup-disk.yml
29   when: (ceph_configured | default(False))
30
31 - include: site.yml
32   when: (ceph_configured | default(False))
33
34 - include: ceph-post-cleanup.yml
35   when: (ceph_configured | default(False))
36
37 - include: set_keyring_owners.yml
38   when: (ceph_configured | default(False))
39
40 - include: associate_pools_for_application.yml
41   when: (ceph_configured | default(False))
42
43 - include: reset_failed_ceph_disk_services.yml
44   when: (ceph_configured | default(False))
45
46 - include: make_osd_disk_metadata.yml
47   when: (ceph_configured | default(False))