Merge "Add more infos into error message"
This commit is contained in:
commit
9e3f547da6
@ -73,22 +73,42 @@
|
|||||||
tags:
|
tags:
|
||||||
- check-disk-size
|
- check-disk-size
|
||||||
|
|
||||||
- name: Fail if there is not enough space available in /
|
- name: Set size facts
|
||||||
assert:
|
set_fact:
|
||||||
that: |
|
root_gb_available: "{{ ((host_root_space_available_bytes | int ) / 1024**3) | round(2, 'floor') }}"
|
||||||
(host_root_space_available_bytes | int) >= (host_data_disk_min_size_bytes | int)
|
|
||||||
when: bootstrap_host_data_disk_device == None
|
when: bootstrap_host_data_disk_device == None
|
||||||
tags:
|
tags:
|
||||||
- check-disk-size
|
- check-disk-size
|
||||||
|
|
||||||
- name: Fail if there is not enough disk space available (disk specified)
|
- name: Set disk size facts
|
||||||
assert:
|
set_fact:
|
||||||
that: |
|
disk_gb_available: "{{ ((host_data_disk_size_bytes | int ) / 1024**3) | round(2, 'floor') }}"
|
||||||
(host_data_disk_size_bytes | int) >= (host_data_disk_min_size_bytes | int)
|
|
||||||
when: bootstrap_host_data_disk_device != None
|
when: bootstrap_host_data_disk_device != None
|
||||||
tags:
|
tags:
|
||||||
- check-disk-size
|
- check-disk-size
|
||||||
|
|
||||||
|
- name: Fail if there is not enough space available in /
|
||||||
|
fail:
|
||||||
|
msg: |
|
||||||
|
Not enough space available in /.
|
||||||
|
Found {{ root_gb_available }} GB, required {{ bootstrap_host_data_disk_min_size }} GB)
|
||||||
|
when:
|
||||||
|
- bootstrap_host_data_disk_device == None
|
||||||
|
- (host_root_space_available_bytes | int) < (host_data_disk_min_size_bytes | int)
|
||||||
|
tags:
|
||||||
|
- check-disk-size
|
||||||
|
|
||||||
|
- name: Fail if there is not enough disk space available (disk specified)
|
||||||
|
fail:
|
||||||
|
msg: |
|
||||||
|
Not enough disk space available.
|
||||||
|
Found {{ disk_gb_available }} GB, required {{ bootstrap_host_data_disk_min_size }} GB)
|
||||||
|
when:
|
||||||
|
- bootstrap_host_data_disk_device != None
|
||||||
|
- (host_data_disk_size_bytes | int) < (host_data_disk_min_size_bytes | int)
|
||||||
|
tags:
|
||||||
|
- check-disk-size
|
||||||
|
|
||||||
- name: Ensure that the kernel has VXLAN support
|
- name: Ensure that the kernel has VXLAN support
|
||||||
modprobe:
|
modprobe:
|
||||||
name: vxlan
|
name: vxlan
|
||||||
|
Loading…
x
Reference in New Issue
Block a user