blob: 747fd66cf188c0a72e8f9ca34ae04c8e2d04acf8 [file] [log] [blame]
Fatih Degirmencie7995082019-03-24 20:49:21 +00001---
2# ============LICENSE_START=======================================================
3# Copyright (C) 2019 The Nordix Foundation. All rights reserved.
4# ================================================================================
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16#
17# SPDX-License-Identifier: Apache-2.0
18# ============LICENSE_END=========================================================
19
Fatih Degirmenci665d4f02019-05-02 10:50:51 -060020- hosts: baremetal
21 remote_user: root
22 gather_facts: true
23 become: true
24 vars_files:
25 - "roles/post-deployment/vars/main.yml"
26 tasks:
27 - name: Install necessary utilities for CEPH
28 apt:
29 name:
30 - xfsprogs
31 - gdisk
32 state: present
33 - name: Remove existing rook data directories
34 file:
35 path: "{{ rook_data_dir_path }}"
36 state: absent
37 ignore_errors: yes
38 tags: reset
39 - name: Remove existing rook storage directories
40 file:
41 path: "{{ rook_storage_dir_path }}"
42 state: absent
43 ignore_errors: yes
44 tags: reset
45 - name: Remove existing rook ceph osds
46 script: "roles/post-deployment/files/clean-ceph-osd.sh {{ rook_node_device_filter }}"
47 ignore_errors: yes
48 tags: reset
49
Fatih Degirmencie7995082019-03-24 20:49:21 +000050- hosts: localhost
51 connection: local
52 gather_facts: true
53 become: yes
54 vars_files:
Fatih Degirmenci665d4f02019-05-02 10:50:51 -060055 - "{{ engine_path }}/engine/var/versions.yml"
Fatih Degirmencie7995082019-03-24 20:49:21 +000056 - "{{ engine_path }}/engine/var/global.yml"
Fatih Degirmenci665d4f02019-05-02 10:50:51 -060057 - "{{ pdf_file }}"
58 - "{{ idf_file }}"
Fatih Degirmencie7995082019-03-24 20:49:21 +000059
Fatih Degirmenci18c7c312019-04-09 16:44:45 +000060# TODO: enable the execution of scenario specific post-deployment tasks
Fatih Degirmencie7995082019-03-24 20:49:21 +000061 roles:
62 - role: post-deployment
63
64# vim: set ts=2 sw=2 expandtab: