osd: add tag on 'wait for all osd to be up' task

This allows skipping this task if really desired.
Use it carefully. Use it at your own risk.

Fixes: #6073

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 5c4ae5356d)
pull/6145/head
Guillaume Abrioux 2020-11-26 09:53:04 +01:00
parent e650c833ea
commit 69b5b96f2d
1 changed files with 3 additions and 0 deletions

View File

@ -88,10 +88,12 @@
when: when:
- not ansible_check_mode - not ansible_check_mode
- inventory_hostname == ansible_play_hosts_all | last - inventory_hostname == ansible_play_hosts_all | last
tags: wait_all_osds_up
- name: include crush_rules.yml - name: include crush_rules.yml
include_tasks: crush_rules.yml include_tasks: crush_rules.yml
when: hostvars[groups[mon_group_name][0]]['crush_rule_config'] | default(crush_rule_config) | bool when: hostvars[groups[mon_group_name][0]]['crush_rule_config'] | default(crush_rule_config) | bool
tags: wait_all_osds_up
- name: set_fact openstack_keys_tmp - preserve backward compatibility after the introduction of the ceph_keys module - name: set_fact openstack_keys_tmp - preserve backward compatibility after the introduction of the ceph_keys module
set_fact: set_fact:
@ -118,3 +120,4 @@
- not rolling_update | default(False) | bool - not rolling_update | default(False) | bool
- openstack_config | bool - openstack_config | bool
- inventory_hostname == groups[osd_group_name] | last - inventory_hostname == groups[osd_group_name] | last
tags: wait_all_osds_up