Whatever ansible give a memory info in ansible_fact it doesn't match with
memory info
that we get from *free -m *command. Why this problem happened for that if
have any solution plz give me
---
- name: Setup server
hosts: localhost
tasks:
- name: test
shell: free -m
register: xyz
- name: Print service status
debug:
msg: "{{ansible_memory_mb.real}}"
- name: Print service status
debug:
msg: "{{xyz.stdout.split('\n')}}"
--
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/74109954-cb3c-4b72-a5b0-34f9e425f16fn%40googlegroups.com.