diff --git a/roles/partitioning/tasks/main.yml b/roles/partitioning/tasks/main.yml index 06d038e..8aa262e 100644 --- a/roles/partitioning/tasks/main.yml +++ b/roles/partitioning/tasks/main.yml @@ -43,7 +43,8 @@ size: "{{ item.size }}" state: present loop: - - { lv: root, size: 12G } + - { lv: root, size: "{{ '12G' if (vm_size | int * 0.4) < 12 + else (vm_size | int * 0.4) | round(0, 'ceil') | int | string + 'G' }}" } - { lv: home, size: 2G } - { lv: var, size: 2G } - { lv: var_log, size: 2G }