Add crude storage benchmark
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Danny Bessems 2023-03-08 13:35:56 +01:00
parent 5aa2141f84
commit cabf813daa

View File

@ -11,11 +11,25 @@
lv: longhorn_lv lv: longhorn_lv
size: 100%VG size: 100%VG
- name: Store begin timestamp
ansible.builtin.set_fact:
start_time: "{{ lookup('pipe', 'date +%s') }}"
- name: Create filesystem - name: Create filesystem
community.general.filesystem: community.general.filesystem:
dev: /dev/mapper/longhorn_vg-longhorn_lv dev: /dev/mapper/longhorn_vg-longhorn_lv
fstype: ext4 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 - name: Mount dynamic disk
ansible.posix.mount: ansible.posix.mount:
path: /mnt/blockstorage path: /mnt/blockstorage