Merge pull request 'refactor ♻️: Refactor task naming to include role context' (#36) from dev into main
Reviewed-on: #36
This commit was merged in pull request #36.
This commit is contained in:
@@ -4,10 +4,13 @@
|
|||||||
that: ansible_os_family == "Debian"
|
that: ansible_os_family == "Debian"
|
||||||
fail_msg: "This role only supports Debian/Proxmox systems."
|
fail_msg: "This role only supports Debian/Proxmox systems."
|
||||||
|
|
||||||
|
- name: ram | Gather only memory fact
|
||||||
|
ansible.builtin.setup:
|
||||||
|
filter: ansible_memtotal_mb
|
||||||
|
|
||||||
- name: ram | Calculate log2ram size
|
- name: ram | Calculate log2ram size
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
_total_ram_mb: "{{ ansible_memtotal_mb }}"
|
_calculated_size_mb: "{{ (ansible_memtotal_mb * log2ram_ram_percent / 100) | int }}"
|
||||||
_calculated_size_mb: "{{ (_total_ram_mb * log2ram_ram_percent / 100) | int }}"
|
|
||||||
log2ram_size_mb: >-
|
log2ram_size_mb: >-
|
||||||
{{
|
{{
|
||||||
[log2ram_min_size_mb,
|
[log2ram_min_size_mb,
|
||||||
|
|||||||
Reference in New Issue
Block a user