- ceph-mon@.service
- ceph-mon.target
- - name: set_fact ceph_uid for ubuntu
- set_fact:
- ceph_uid: 64045
- when: ceph_docker_image_tag | string is search("ubuntu")
-
- - name: set_fact ceph_uid for red hat
- set_fact:
- ceph_uid: 167
- when: ceph_docker_image_tag | string is match("latest") or ceph_docker_image_tag | string is search("centos") or ceph_docker_image_tag | string is search("fedora")
+ - import_role:
+ name: ceph-defaults
- - name: set_fact ceph_uid for rhel
- set_fact:
- ceph_uid: 167
- when: ceph_docker_image is search("rhceph")
+ - import_role:
+ name: ceph-facts
# NOTE: changed from file module to raw find command for performance reasons
# The file module has to run checks on current ownership of all directories and files. This is unnecessary
failed_when: false
tasks:
- - import_role:
- name: ceph-defaults
-
- - import_role:
- name: ceph-facts
-
- import_role:
name: ceph-handler
- ceph-mgr@.service
- ceph-mgr.target
- - set_fact:
- ceph_uid: 64045
- when: ceph_docker_image_tag | string is match("latest") or ceph_docker_image_tag | string is search("ubuntu")
+ - import_role:
+ name: ceph-defaults
- - set_fact:
- ceph_uid: 167
- when: ceph_docker_image_tag | string is search("centos") or ceph_docker_image is search("rhceph") or ceph_docker_image_tag | string is search("fedora")
+ - import_role:
+ name: ceph-facts
# NOTE: changed from file module to raw find command for performance reasons
# The file module has to run checks on current ownership of all directories and files. This is unnecessary
changed_when: false
tasks:
- - import_role:
- name: ceph-defaults
-
- - import_role:
- name: ceph-facts
-
- import_role:
name: ceph-handler
- /usr/lib/systemd/system/ceph-osd@.service
- /usr/lib/systemd/system/ceph-volume@.service
- - set_fact:
- ceph_uid: 64045
- when: ceph_docker_image_tag | string is match("latest") or ceph_docker_image_tag | string is search("ubuntu")
-
- - name: set_fact ceph_uid for red hat
- set_fact:
- ceph_uid: 167
- when: ceph_docker_image_tag | string is match("latest") or ceph_docker_image_tag | string is search("centos") or ceph_docker_image_tag | string is search("fedora")
-
- - name: set_fact ceph_uid for rhel
- set_fact:
- ceph_uid: 167
- when: ceph_docker_image is search("rhceph")
+ - import_role:
+ name: ceph-facts
# NOTE: changed from file module to raw find command for performance reasons
# The file module has to run checks on current ownership of all directories and files. This is unnecessary
when: osd_running.rc != 0
tasks:
- - import_role:
- name: ceph-defaults
-
- - import_role:
- name: ceph-facts
-
- import_role:
name: ceph-handler
- ceph-mds@.service
- ceph-mds.target
- - set_fact:
- ceph_uid: 64045
- when: ceph_docker_image_tag | string is match("latest") or ceph_docker_image_tag | string is search("ubuntu")
+ - import_role:
+ name: ceph-defaults
- - set_fact:
- ceph_uid: 167
- when: ceph_docker_image_tag | string is search("centos") or ceph_docker_image is search("rhceph") or ceph_docker_image_tag | string is search("fedora")
+ - import_role:
+ name: ceph-facts
# NOTE: changed from file module to raw find command for performance reasons
# The file module has to run checks on current ownership of all directories and files. This is unnecessary
changed_when: false
tasks:
- - import_role:
- name: ceph-defaults
-
- - import_role:
- name: ceph-facts
-
- import_role:
name: ceph-handler
serial: 1
become: true
pre_tasks:
- - set_fact:
- ceph_uid: 64045
- when: ceph_docker_image_tag | string is match("latest") or ceph_docker_image_tag | string is search("ubuntu")
+ - import_role:
+ name: ceph-defaults
- - set_fact:
- ceph_uid: 167
- when: ceph_docker_image_tag | string is search("centos") or ceph_docker_image is search("rhceph") or ceph_docker_image_tag | string is search("fedora")
+ - import_role:
+ name: ceph-facts
# NOTE: changed from file module to raw find command for performance reasons
# The file module has to run checks on current ownership of all directories and files. This is unnecessary
changed_when: false
tasks:
- - import_role:
- name: ceph-defaults
-
- - import_role:
- name: ceph-facts
-
- name: stop non-containerized ceph rgw(s)
service:
name: "ceph-radosgw@rgw.{{ ansible_hostname }}.{{ item.instance_name }}"
- ceph-rbd-mirror@.service
- ceph-rbd-mirror.target
- - set_fact:
- ceph_uid: 64045
- when: ceph_docker_image_tag | string is match("latest") or ceph_docker_image_tag | string is search("ubuntu")
+ - import_role:
+ name: ceph-defaults
- - set_fact:
- ceph_uid: 167
- when: ceph_docker_image_tag | string is search("centos") or ceph_docker_image is search("rhceph") or ceph_docker_image_tag | string is search("fedora")
+ - import_role:
+ name: ceph-facts
# NOTE: changed from file module to raw find command for performance reasons
# The file module has to run checks on current ownership of all directories and files. This is unnecessary
changed_when: false
tasks:
- - import_role:
- name: ceph-defaults
-
- - import_role:
- name: ceph-facts
-
- import_role:
name: ceph-handler
enabled: no
failed_when: false
- - set_fact:
- ceph_uid: 64045
- when: ceph_docker_image_tag | string is match("latest") or ceph_docker_image_tag | string is search("ubuntu")
+ - import_role:
+ name: ceph-defaults
- - set_fact:
- ceph_uid: 167
- when: ceph_docker_image_tag | string is search("centos") or ceph_docker_image is search("rhceph") or ceph_docker_image_tag | string is search("fedora")
+ - import_role:
+ name: ceph-facts
# NOTE: changed from file module to raw find command for performance reasons
# The file module has to run checks on current ownership of all directories and files. This is unnecessary
changed_when: false
tasks:
- - import_role:
- name: ceph-defaults
-
- - import_role:
- name: ceph-facts
-
- import_role:
name: ceph-handler
ceph_uid: 167
when:
- containerized_deployment | bool
- - (ceph_docker_image_tag | string is search("latest") or ceph_docker_image_tag | string is search("centos") or ceph_docker_image_tag | string is search("fedora")
+ - (ceph_docker_image_tag | string is search("latest")
+ or ceph_docker_image_tag | string is search("centos")
+ or ceph_docker_image_tag | string is search("fedora")
+ or ceph_docker_image_tag | string is search("rhceph")
or (ansible_distribution == 'RedHat'))
-- name: set_fact ceph_uid for red hat
- set_fact:
- ceph_uid: 167
- when:
- - containerized_deployment | bool
- - ceph_docker_image is search("rhceph")
-
- name: set_fact rgw_hostname
set_fact:
rgw_hostname: "{% set _value = ansible_hostname -%}