23 lines
421 B
YAML
23 lines
421 B
YAML
---
|
|
- set_fact:
|
|
hwpoints: 1
|
|
when: ansible_memtotal_mb|int <= 2048
|
|
|
|
- set_fact:
|
|
hwpoints: 2
|
|
when: ansible_memtotal_mb|int > 2048 and ansible_memtotal_mb|int < 4096
|
|
|
|
- set_fact:
|
|
hwpoints: 3
|
|
when: ansible_memtotal_mb|int >= 4096
|
|
|
|
- set_fact:
|
|
pkgarch: amd64
|
|
when: ansible_architecture == 'x86_64'
|
|
|
|
- set_fact:
|
|
pkgarch: i386
|
|
when: ansible_architecture == 'i386'
|
|
|
|
- setup: filter=ansible_local
|