Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'ansible_memory_mb' is undefined #46

Open
gk-fschubert opened this issue Sep 4, 2024 · 0 comments
Open

'ansible_memory_mb' is undefined #46

gk-fschubert opened this issue Sep 4, 2024 · 0 comments

Comments

@gk-fschubert
Copy link

The PR https://github.com/geerlingguy/ansible-role-swap/pull/36/commits indroduced a issue for our servers:

fatal: [xxx.xxx.xxx.xxx]: FAILED! => {"msg": "The conditional check 'ansible_memory_mb['swap']['total'] > 0' failed. The error was: error while evaluating conditional (ansible_memory_mb['swap']['total'] > 0): 'ansible_memory_mb' is undefined. 'ansible_memory_mb' is undefined\n\nThe error appears to be in '/ansible-resources/roles/swap/tasks/disable.yml': line 2, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n---\n- name: Disable swap (if configured).\n ^ here\n"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant