78e40b5702
Using Ansible provided Jinja tests as filters is deprecated Change-Id: I03b6b9760d102608a1d814e6073a459226482dde Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
21 lines
603 B
YAML
21 lines
603 B
YAML
---
|
|
- hosts: undercloud
|
|
vars:
|
|
metadata:
|
|
name: Advanced Format 512e Support
|
|
description: >
|
|
Detect whether the undercloud disks use Advanced Format. If they do,
|
|
the overcloud images may fail to upload to Glance.
|
|
groups:
|
|
- prep
|
|
- pre-deployment
|
|
tasks:
|
|
- name: List the available drives
|
|
register: drive_list
|
|
command: "ls /sys/class/block/"
|
|
changed_when: False
|
|
- name: Detect whether the drive uses Advanced Format
|
|
advanced_format: drive={{ item }}
|
|
when: item is match("^sd.$")
|
|
with_items: "{{ drive_list.stdout_lines }}"
|