DavidWittman / ansible-redis

Highly-configurable Ansible role to install Redis and Redis Sentinel from source
MIT License
663 stars 288 forks source link

ansible_processor_cores is undefined #160

Closed hoahm closed 7 years ago

hoahm commented 7 years ago

I was setting single Redis node and got this issue when trying to installing Redis, please help me how to fix this issue. Thanks

FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'ansible_processor_cores' is undefined\n\nThe error appears to have been in '/usr/local/etc/ansible/roles/DavidWittman.redis/tasks/install.yml': line 11, 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: compile redis\n  ^ here\n"}
DavidWittman commented 7 years ago

Which version of Ansible was this on? Are you specifically disabling fact gathering in your Ansible playbook?

On Sun, May 7, 2017 at 4:37 AM, Hoa Hoang notifications@github.com wrote:

I was setting single Redis node and got this issue when trying to installing Redis, please help me how to fix this issue. Thanks

FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'ansible_processor_cores' is undefined\n\nThe error appears to have been in '/usr/local/etc/ansible/roles/DavidWittman.redis/tasks/install.yml': line 11, 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: compile redis\n ^ here\n"}

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/DavidWittman/ansible-redis/issues/160, or mute the thread https://github.com/notifications/unsubscribe-auth/AArmLzBsmi079BriV19AYvAiDrtQlTMlks5r3ZDYgaJpZM4NTFHr .

herkyl commented 7 years ago

Getting the same error with ansible 2.3.2.0. I'm not disabling fact gathering. I temporarily fixed it by adding a ansible_processor_cores: 1 variable