Add crude storage benchmark
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
5aa2141f84
commit
cabf813daa
@ -11,11 +11,25 @@
|
||||
lv: longhorn_lv
|
||||
size: 100%VG
|
||||
|
||||
- name: Store begin timestamp
|
||||
ansible.builtin.set_fact:
|
||||
start_time: "{{ lookup('pipe', 'date +%s') }}"
|
||||
|
||||
- name: Create filesystem
|
||||
community.general.filesystem:
|
||||
dev: /dev/mapper/longhorn_vg-longhorn_lv
|
||||
fstype: ext4
|
||||
|
||||
- name: Store end timestamp
|
||||
ansible.builtin.set_fact:
|
||||
end_time: "{{ lookup('pipe', 'date +%s') }}"
|
||||
|
||||
- name: Calculate crude storage benchmark
|
||||
ansible.builtin.set_fact:
|
||||
storage_benchmark: "{{ (end_time | int - start_time | int) }}"
|
||||
- debug:
|
||||
var: storage_benchmark
|
||||
|
||||
- name: Mount dynamic disk
|
||||
ansible.posix.mount:
|
||||
path: /mnt/blockstorage
|
||||
|
Loading…
Reference in New Issue
Block a user