devops-coop / ansible-haproxy

Installs and configure HAProxy
Apache License 2.0
96 stars 97 forks source link

Updated check epel task #24

Closed metaevolution closed 9 years ago

metaevolution commented 9 years ago

Hi, I get the following error when running the module on CentOS 7

TASK: [info.haproxy | Check epel repo] **************************************** failed: [192.168.0.10] => {"changed": true, "cmd": ["yum", "repolist", "|", "grep", "-qi", "EPEL"], "delta": "0:00:00.093096", "end": "2015-03-25 01:21:43.802234", "rc": 1, "start": "2015-03-25 01:21:43.709138", "warnings": ["Consider using yum module rather than running yum"]} stderr: Command line error: no such option: -i

According to http://docs.ansible.com/command_module.html the | operator is not supported in the command module and the shell module should be used instead.

Changing command to shell seems to fix this error on CentOS 7.

PierrePaul commented 9 years ago

Thank you!