--- # Copyright 2019 Red Hat, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. - name: Ceph installed with ceph ansible tags: bar_create_recover_image when: - cephadm_ls.stdout is not defined or cephadm_ls.stdout == "[]" block: - name: Set ceph monitor {{ ceph_systemd_state }} systemd: state: "{{ ceph_systemd_state }}" name: "ceph-mon@{{ inventory_hostname }}" - name: Set ceph management {{ ceph_systemd_state }} systemd: state: "{{ ceph_systemd_state }}" name: "ceph-mgr@{{ inventory_hostname }}" - name: Get the node names of the mds nodes command: hiera -c '{{ tripleo_backup_and_restore_hiera_config_file }}' 'ceph_mds_short_node_names' register: bar_ceph_mds_nodes - name: Set ceph mds {{ ceph_systemd_state }} systemd: state: "{{ ceph_systemd_state }}" name: "ceph-mds@{{ inventory_hostname }}" when: - bar_ceph_mds_nodes.stdout != "nil" - inventory_hostname in bar_ceph_mds_nodes.stdout - name: Get the node names of the rgw nodes command: hiera -c '{{ tripleo_backup_and_restore_hiera_config_file }}' 'ceph_rgw_short_node_names' register: bar_ceph_rgw_nodes - name: Set ceph rgw {{ ceph_systemd_state }} command: systemctl start "ceph-radosgw@rgw.{{ inventory_hostname }}.*" when: - bar_ceph_rgw_nodes != "nil" - inventory_hostname in bar_ceph_rgw_nodes.stdout