Use only short names in Ceph MON config
This commit is contained in:
@ -33,14 +33,14 @@
|
||||
# Note that this only applies to coordinators; hypervisor-only nodes restart immediately in
|
||||
# parallel, and the first two of three handlers do not apply to hypervisor-only nodes.
|
||||
- name: restart ceph-mon
|
||||
shell: "{% if is_coordinator %}sleep {{ 15 * (hostvars[ansible_hostname].ansible_local.host_id|int - 1) }} && systemctl restart ceph-mon@{{ ansible_hostname }}.service{% endif %}"
|
||||
shell: "{% if is_coordinator %}sleep {{ 15 * (hostvars[inventory_hostname].ansible_local.host_id|int - 1) }} && systemctl restart ceph-mon@{{ inventory_hostname.split('.')[0] }}.service{% endif %}"
|
||||
ignore_errors: true
|
||||
|
||||
- name: restart ceph-mgr
|
||||
shell: "{% if is_coordinator %}sleep {{ 15 * (hostvars[ansible_hostname].ansible_local.host_id|int - 1) }} && systemctl restart ceph-mgr@{{ ansible_hostname }}.service{% endif %}"
|
||||
shell: "{% if is_coordinator %}sleep {{ 15 * (hostvars[inventory_hostname].ansible_local.host_id|int - 1) }} && systemctl restart ceph-mgr@{{ inventory_hostname.split('.')[0] }}.service{% endif %}"
|
||||
ignore_errors: true
|
||||
|
||||
- name: restart pvcnoded
|
||||
shell: "{% if is_coordinator %}sleep {{ 15 * (hostvars[ansible_hostname].ansible_local.host_id|int - 1) }} &&{% endif %} systemctl restart pvcnoded.service"
|
||||
shell: "{% if is_coordinator %}sleep {{ 15 * (hostvars[inventory_hostname].ansible_local.host_id|int - 1) }} &&{% endif %} systemctl restart pvcnoded.service"
|
||||
ignore_errors: true
|
||||
when: bootstrap is not defined
|
||||
|
Reference in New Issue
Block a user