Improve task names for Ceph
The task names while bootstrapping Ceph OSDs and cache OSDs were identical making them harder to distinguish in the Ansible output. TrivialFix Change-Id: I0228221a09bdaaba46b6280b6e1be9920ad13598
This commit is contained in:
parent
9b05eb87b8
commit
2d4161de63
@ -1,5 +1,5 @@
|
||||
---
|
||||
- name: Looking up disks to bootstrap for Ceph
|
||||
- name: Looking up disks to bootstrap for Ceph OSDs
|
||||
command: docker exec -t kolla_toolbox /usr/bin/ansible localhost
|
||||
-m find_disks
|
||||
-a "partition_name='KOLLA_CEPH_OSD_BOOTSTRAP' match_mode='prefix'"
|
||||
@ -7,11 +7,11 @@
|
||||
changed_when: "{{ osd_lookup.stdout.find('localhost | SUCCESS => ') != -1 and (osd_lookup.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed }}"
|
||||
failed_when: osd_lookup.stdout.split()[2] != 'SUCCESS'
|
||||
|
||||
- name: Reading data from variable
|
||||
- name: Parsing disk info for Ceph OSDs
|
||||
set_fact:
|
||||
osds_bootstrap: "{{ (osd_lookup.stdout.split('localhost | SUCCESS => ')[1]|from_json).disks|from_json }}"
|
||||
|
||||
- name: Looking up disks to bootstrap for Ceph
|
||||
- name: Looking up disks to bootstrap for Ceph Cache OSDs
|
||||
command: docker exec -t kolla_toolbox /usr/bin/ansible localhost
|
||||
-m find_disks
|
||||
-a "partition_name='KOLLA_CEPH_OSD_CACHE_BOOTSTRAP' match_mode='prefix'"
|
||||
@ -19,7 +19,7 @@
|
||||
changed_when: "{{ osd_cache_lookup.stdout.find('localhost | SUCCESS => ') != -1 and (osd_cache_lookup.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed }}"
|
||||
failed_when: osd_cache_lookup.stdout.split()[2] != 'SUCCESS'
|
||||
|
||||
- name: Reading data from variable
|
||||
- name: Parsing disk info for Ceph Cache OSDs
|
||||
set_fact:
|
||||
osds_cache_bootstrap: "{{ (osd_cache_lookup.stdout.split('localhost | SUCCESS => ')[1]|from_json).disks|from_json }}"
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
changed_when: "{{ osd_lookup.stdout.find('localhost | SUCCESS => ') != -1 and (osd_lookup.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed }}"
|
||||
failed_when: osd_lookup.stdout.split()[2] != 'SUCCESS'
|
||||
|
||||
- name: Reading data from variable
|
||||
- name: Parsing disk info for Ceph OSDs
|
||||
set_fact:
|
||||
osds: "{{ (osd_lookup.stdout.split('localhost | SUCCESS => ')[1]|from_json).disks|from_json }}"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user