validations-common/validations_common/playbooks/check-disk-space-pre-upgrade.yaml
Gael Chamoulaud (Strider) 676a5c9797 Add check-disk-space-pre-upgrade playbooks
Change-Id: Id436449b2ecb9d6301812683ca595fc70b476aa8
Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
2020-04-23 14:51:46 +00:00

19 lines
508 B
YAML

---
- hosts: all
vars:
metadata:
name: Verify server fits the disk space requirements to perform an upgrade
description: >
Make sure that the root partition on the server node has enough
free space before starting an upgrade
groups:
- pre-upgrade
volumes:
- {mount: /var/lib/docker, min_size: 10}
- {mount: /var/lib/config-data, min_size: 3}
- {mount: /var, min_size: 16}
- {mount: /, min_size: 20}
roles:
- check_disk_space