tripleo-validations/validations/512e.yaml
Gael Chamoulaud 78e40b5702 Avoid Ansible Deprecation Warning
Using Ansible provided Jinja tests as filters is deprecated

Change-Id: I03b6b9760d102608a1d814e6073a459226482dde
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2018-11-15 18:10:03 +01:00

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 }}"