Odd results from query of /proc/meminfo?
When I do the following from shell...
# cat /proc/meminfo | grep MemTotal
MemTotal: 8087276 kB
But when I do the same via Ansible...
ok: [192.168.1.212] => {
"msg": "Pi Memory Total: MemTotal: 957160 kB"
}
Ansible Source...
- name: Memory Total
#shell: "cat /proc/meminfo | grep MemTotal | cut -d ':' -f2 | cut
-d 'k' -f1 | tr -d ' '"
shell: "cat /proc/meminfo | grep MemTotal"
register: m
changed_when: False
- name: Memory Total
debug:
msg: "Memory Total: {{ m.stdout }}"
Returned value is greater than physical memory size!
--
You received this message because you are subscribed to the Google Groups "Ansible
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/54f9a37e-9038-81b0-2650-eeb7ee212779%40gmail.com.