23 lines
635 B
YAML
23 lines
635 B
YAML
---
|
|
- hosts: undercloud
|
|
vars:
|
|
metadata:
|
|
name: Check if ceph-ansible is installed on the undercloud
|
|
description: >
|
|
Prints a message if ceph-ansible isn't installed
|
|
groups:
|
|
- pre-deployment
|
|
tasks:
|
|
- name: Check if ceph-ansible is installed
|
|
command: yum list installed ceph-ansible
|
|
args:
|
|
warn: no
|
|
ignore_errors: true
|
|
register: ceph_ansible_installed
|
|
changed_when: False
|
|
- name: Warn about missing ceph-ansible
|
|
warn:
|
|
msg: If planning to use Ceph, it is necessary to install the ceph-ansible on the undercloud
|
|
when:
|
|
- ceph_ansible_installed|failed
|